www.mxs223.com本机
基础配置
server{
listen 443 ssl;
server_name mxs223.com www.mxs223.com;
ssl_certificate /usr/local/nginx/cert/3043969_mxs223.com.pem;
ssl_certificate_key /usr/local/nginx/cert/3043969_mxs223.com.key;
add_header Access-Control-Allow-Origin $http_origin;
location /{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-Scheme 'Https';
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8081;
}
location ~ .*\.(js|css|jpg|png|eot|svg|ttf|woff|woff2|map|json)$
{
root /app/work/ssm_frame/;
}
}
80跳转
server{
listen 80 default_server;
server_name www.mxs223.com mxs223.com;
location /{
rewrite ^/(.*) https://www.mxs223.com/$1 permanent;
}
}