分享我所知道的

宝塔面板反代GG

server
{
    listen 443;
    server_name zmrbk.com;
    index index.php index.html index.htm default.php default.htm default.html;
    root /www/wwwroot/zmrbk.com;
    
    include enable-php-56.conf;
    include /www/server/panel/vhost/rewrite/zmrbk.com.conf;

location / {

proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_pass https://www.google.co.jp;
}

}

server
{
listen 80;
server_name  zmrbk.com;
rewrite ^(.*) https://zmrbk.com$1 permanent;
}
赞(0)
未经允许不得转载:追梦人博客 » 宝塔面板反代GG
分享到: 更多 (0)