2016八月19
Nginx:绑定域名代理tomcat
server { listen 80; listen 443 ssl; if ( $scheme = "http" ) { rewrite ^(.*) https://$host$1; } server_name nutzwk.wizzer.cn; root "/java/work/nutzwk"; ssl_certificate /java/work/1_nutzwk.wizzer.cn_bundle.crt; ssl_certificate_key /java/work/2_nutzwk.wizzer.cn.key; add_header "X-UA-Compatible" "IE=Edge, chrome=1"; location / { proxy_pass http://127.0.0.1:9091; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
本文地址:https://wizzer.cn/archives/3289 , 转载请保留.