nginx怎么在www.a.com上把所有的请求转发到www.b.com的机器上呢?

答:
server {

listen 80;
listen [::]:80;

server_name www.a.com;

return 301 http://www.b.com/www.a.com$request_uri;

}

Last modification:November 5th, 2020 at 03:15 pm
如果觉得我的文章对你有用,请随意赞赏