首页 > 其他 > 详细

nginx 编译安装,问题

时间:2019-12-10 16:21:46      阅读:59      评论:0      收藏:0      [点我收藏+]
# 编译

./configure --prefix=/lvyou/app/nginx --sbin-path=/lvyou/app/nginx --conf-path=/lvyou/app/nginx/conf/nginx.conf --pid-path=/lvyou/app/nginx/pid/nginx.pid --with-http_ssl_module --with-http_stub_status_module --with-http_flv_module --with-http_gzip_static_module

##
make && make install
location ~ {
            #proxy_redirect off;
            proxy_redirect http:// https://;  # 不写这个,tomcat的重定向 会给你重定向到 http!!切记 用这个,不用 off
            proxy_set_header Host $host;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Ssl off;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass http://127.0.0.1:8080;
        }

 

nginx 编译安装,问题

原文:https://www.cnblogs.com/whm-blog/p/12016868.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!