Nginx配置从域名A跳转到域名B
需求:已经有一个域名,然后想让访问a域名的直接访问
**这里需要在A服务器的Nginx配置。**
配置
location /xxx {root /usr/local/nginx/html;rewrite ^(.*) $1 permanent;}
时间:2020-11-23 23:18:48
需求:已经有一个域名,然后想让访问a域名的直接访问
**这里需要在A服务器的Nginx配置。**
location /xxx {root /usr/local/nginx/html;rewrite ^(.*) $1 permanent;}