用 nginx 来转向裸域
- 0次
- 2021-05-31 11:09:21
- idczone
GHS被墙的问题也得到解决了吧
这个只是把没用的www去掉
反向代理还要单独设置
感谢感谢 ^^
goode,thx
[[email&~]/usr/local/nginx/sbin/nginx -t
[emerg]: "if" directive is not allowed here in /usr/local/nginx/conf/nginx.conf:158
if ($host ~* ^www\.(.*))这个判断怎么不行啊
@paloalto
只使用rewrite ^(.*) http://www.example.com$1 permanent;就可以达到同样的效果的。