http {
upstream https2http_proxy{
server 192.168.22.103:80;
}
server {
listen 1443 ssl;
server_name localhost; ssl_certificate /home/liuyi/install/conf/server.crt;
ssl_certificate_key /home/liuyi/install/conf/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on; location / {
proxy_pass http://https2http_proxy;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
#client_max_body_size 1m;
#client_body_buffer_size 256k;
#proxy_connect_timeout 60;
#proxy_send_timeout 30;
#proxy_read_timeout 30;
#proxy_buffer_size 8k;
#proxy_buffers 8 64k;
#proxy_busy_buffers_size 64k;
#proxy_temp_file_write_size 64k;
}
}
}