nginx proxy_pass 路径匹配、URL 重写
需要注意 proxy_pass 后跟的服务器 URL 是否以 / 结尾。
proxy_http_version 1.1;
proxy_set_header Connection "";URL 重写
if ($host != 'lkxed.cn' ) {
rewrite ^/(.*)$ https://lkxed.cn/$1 permanent;
}Last updated