Php 当vhost文件中设置了*.domain.net时,Apache2 Ruby和Python将加载默认网站
使用命名vhost设置5个站点Php 当vhost文件中设置了*.domain.net时,Apache2 Ruby和Python将加载默认网站,php,python,ruby,apache2,vhosts,Php,Python,Ruby,Apache2,Vhosts,使用命名vhost设置5个站点 site1.domain.net(PHP) site2.domain.net(Python) site3.domain.net(Ruby) site4.domain.net(PHP) site5.domain.net(PHP) 在site1的vhost中,我还将ServerAlias设置为*.domain.net,因为我希望任何未定义的地址都指向该地址 当我将*.domain.net添加到该vhost时,python和ruby站点将重定向到site1,而不是它
- site1.domain.net(PHP)
- site2.domain.net(Python)
- site3.domain.net(Ruby)
- site4.domain.net(PHP)
- site5.domain.net(PHP)
感谢您的时间和帮助。我认为这与mod_wsgi和Phusion Passenger的使用无关。我认为ServerAlias就是这样工作的 您可以尝试以下替代方案:
- 删除服务器别名
- 为“*.domain.net”(或者,如果不起作用,“.domain.net”或“domain.net”)设置vhost,该vhost将重定向到site1.domain.net