1
我有2個虛擬站點,它們轉到指定目錄之外的相同目錄。例如。Apache 2虛擬主機共享1公共目錄
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>
有什麼建議?