-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何使用相同port同时配置多站点 #575
Comments
可以,按照你以上的设置不变,当然 |
当然可以,就这这样配置就行了,不过你这样肯定会报错的,可以把站点2的default去掉,或者两个站点的default都去掉,其他不用改 |
目前状况:
|
我觉得你先要搞秦楚nginx的基本用法,先了解什么叫空主机头,然后再来说你主机配置的问题。 |
也试过了,配置空头(设置404),访问localhost 就是404,访问域名依旧是502 |
排查到问题了,是开启了vpn导致127.0.0.1 自动转发到本地的vpn端口上了。 之前我的配置没啥问题;空头主机不配置也没啥关系。 |
经研究,解决开发需要关闭vpn的问题
此时,打开vpn也不会出现502了。另外,感谢各位的回复。 |
站点1:
站点2:
要求:
疑问:
The text was updated successfully, but these errors were encountered: