验证中...
开源中国 2018 年度最后一场技术盛会邀你来约~错过就要等明年啦!点此立即预约
语言: 其他
分类: 软件配置
最后更新于 2018-07-12 17:28
ngx_proxy_to_backend.conf
原始数据 复制代码
server {
listen 80;
server_name domain.name;
listen 443 ssl;
ssl_certificate ../cert/domain.name.cert;
ssl_certificate_key ../cert/domain.name.key;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
}
location ~ /\. {
deny all;
}
access_log /var/log/nginx/domain.name-access.log access;
error_log /var/log/nginx/domain.name-error.log;
}

评论列表( 0 )

你可以在登录后,发表评论

搜索帮助

12_float_left_people 12_float_left_close