我有 2 个虚拟站点转到指定目录之外的同一目录。例如。
example1.com -> /var/www/example1
/var/www/example1/index.html meta redirects to /var/www/common/index.php?id=example1
example2.com -> /var/www/example2
/var/www/example2/index.html meta redirects to /var/www/common/index.php?id=example2
问题是我收到 Apache Not Found 错误。但是, ' locahost/example1
' 工作正常, ' locahost/example2
' 工作正常。问题出在虚拟主机配置中,也许?
两者都是(缩写)...
<VirtualHost *:80>
ServerName example1.com
DocumentRoot /var/www/example1
</VirtalHost>
<VirtualHost *:80>
ServerName example2.com
DocumentRoot /var/www/example2
</VirtalHost>
有什么建议么?