-3
我有兩個網站託管在同一臺服務器下兩個單獨的文檔根。現在,這兩個網站的網址已在域級別上更改(由第三方完成)。現在,問題出現,這兩個網址都鏈接到同一個網站。問題在哪裏呢?Apache:兩臺主機指向相同的域
這是虛擬主機這樣說:
NameVirtualHost 123.123.123.124:80
<VirtualHost 123.123.123.124:80>
ServerName www.test.com
DocumentRoot "/path/to/document/root/"
<Directory "/path/to/document/root/">
php_admin_flag engine on
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
allow from all
DirectoryIndex index.html index.php
</Directory>
</VirtualHost>
NameVirtualHost 123.123.123.124:80
<VirtualHost 1123.123.123.124:80>
ServerName www.test2.com
DocumentRoot "/path/to/document/root/"
<Directory "/path/to/document/root/">
php_admin_flag engine on
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
DirectoryIndex index.html index.php
</Directory>
</VirtualHost>
你能發佈你的設置代碼嗎? –
你使用兩個不同的虛擬主機在不同的端口上偵聽嗎? –
@JoelStüdle虛擬主機配置添加到帖子。謝謝 – iqbalmp