0
我在Apache和虚拟主机上遇到了一些问题。在我的主机上我有1个网站运行,我想为论坛创建一个子域。Apache虚拟主机没有正确重定向
当我去forum.domain.com它显示我的主页,当我去domain.com它也指向主页面。
<VirtualHost domain.com:80>
DocumentRoot "C:\wamp\www"
ServerName domain.com
<Directory "C:\wamp\www">
# AllowOverride All # Deprecated
# Order Allow,Deny # Deprecated
# Allow from all # Deprecated
# --New way of doing it
Require all granted
</Directory>
</VirtualHost>
<VirtualHost forum.domain.com:80>
DocumentRoot "C:\wamp\www\forum"
ServerName forum.domain.com
<Directory "C:\wamp\www\forum">
# AllowOverride All # Deprecated
# Order Allow,Deny # Deprecated
# Allow from all # Deprecated
# --New way of doing it
Require all granted
</Directory>
</VirtualHost>
我还添加了3 DNS A记录我的域名,@ www和论坛,他们都点到我的服务器IP
我到底做错了什么?