面板介绍:【服务器面板】自带邮件服务!宝塔面板替代品——HestiaCP 面板 保姆级教程 海外开源面板 颜值不错
视频
YouTube:https://youtu.be/EbklLLRO7FE
哔哩哔哩:https://www.bilibili.com/BV1tv4y1g7vw
反向代理
cd /home/gugu/conf/web/halo2.gugu.ge
vim nginx.ssl.conf
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;
}
nginx -s reload
解决办法:
编辑vim /etc/nginx/nginx.conf
,在http
里面增加
proxy_headers_hash_max_size 51200;
proxy_headers_hash_bucket_size 6400;
nginx -s reload
---------------
如何觉得文章内容不错,欢迎点击一下广告,支持一下咕咕😍😍😍
原创文章,作者:Roy,如若转载,请注明出处:https://iwanlab.com/hestiacp-reverse-proxy/