webman用nginx这样设置隐藏端口

gongaiorg
server {
        listen        80;
        server_name  站点域名;
        root   /your/webman/public;
        location / {
            proxy_pass  http://127.0.0.1:8787; # 转发规则
            index index.php index.html error/index.html;
            autoindex  off;
            proxy_set_header Host $proxy_host; # 修改转发请求头
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
}
1649 0 3
0个回答

年代过于久远,无法发表回答
×
🔝