-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