Nginx 将 www 添加到标头主机

Nginx 将 www 添加到标头主机
location / {
    proxy_set_header Host sub.domain.host.com;
    proxy_pass https://other.host.com/;
}

主机头最终为万维网.sub.domain.host.com,有没有办法阻止万维网被添加?

相关内容