server {
listen 80;
listen 443 default ssl;
server_name wen.lvxingpai.com;
#charset koi8-r;
#access_log logs/host.access.log main;
ssl_certificate /home/zhanglu/214136673600938.pem;
ssl_certificate_key /home/zhanglu/214136673600938.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
# root html;
# index index.html index.htm;
proxy_pass http://127.0.0.1:7088;
}
location / {
proxy_pass http://127.0.0.1:12100;
#root *;
#index index.html index.htm;
}
}
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/opt/nginx/pcre-8.35
make &make install
openssl genrsa -des3 -out nginx.key 2048
openssl req -new -key nginx.key -out nginx.csr
联系我
本人qq群 463175657