面板介绍:【服务器面板】自带邮件服务!宝塔面板替代品——HestiaCP 面板 保姆级教程 海外开源面板 颜值不错
视频
YouTube:https://youtu.be/EbklLLRO7FE
哔哩哔哩【高清版本可以点击去吐槽到B站观看】:
反向代理
1 2 3 |
<pre class="inline:true decode:1 " >cd /home/gugu/conf/web/halo2.gugu.ge vim nginx.ssl.conf |
1 2 3 4 5 6 7 8 9 10 11 |
<pre class="inline:true decode:1 " >location / { proxy_pass http://144.202.92.52:8090/; rewrite ^/(.*)$ /$1 break; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade-Insecure-Requests 1; proxy_set_header X-Forwarded-Proto https; } |
1 |
<pre class="inline:true decode:1 " >nginx -s reload |
解决办法:
编辑 vim /etc/nginx/nginx.conf,在 http里面增加
1 2 |
<pre class="inline:true decode:1 " >proxy_headers_hash_max_size 51200; proxy_headers_hash_bucket_size 6400; |
1 |
<pre class="inline:true decode:1 " >nginx -s reload |
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END