xpf0000 / PhpWebStudy

Powerful Web and PHP Development Environment. Support both macOS and windows
https://www.macphpstudy.com
BSD 3-Clause "New" or "Revised" License
519 stars 42 forks source link

如果不同的站点可以使用不同的端口就好了。 #41

Closed xiaohu8728 closed 1 year ago

xiaohu8728 commented 1 year ago

比如:http://www.test1.com:8081 http://www.test2.com:8082

xpf0000 commented 1 year ago

现在就可以啊, 创建站点时, 可以选择此站点使用的端口, 每个站点都是彼此独立的, 需要注意apache的监听端口号不能重复(apache本身的配置文件和站点的vhost文件中的Listen 不能有重复)

xiaohu8728 commented 1 year ago

为什么我不行呀?一个8080 一个8081 结果8081端口没打开。

xpf0000 commented 1 year ago

你用的apache吧, apache比较麻烦, 端口必须Listen, 然后还不能重复, 例如 apache本身的配置文件中Listen了8080, 站点的vhost文件中就不能再有Listen 8080, 多端口建议使用nginx, 无需额外配置, 直接就可用