Wamp服务器,虚拟主机配置,子域无法正常工作

时间:2014-04-16 01:57:08

标签: wamp wampserver virtual-hosts

<VirtualHost aspa.itpark.mn:80>
  ServerAdmin webmaster@itpark.mn
  DocumentRoot "c:\wamp\www\aspa"
  ServerName aspa.itpark.mn
  Server Alias aspa.itpark.mn
  <Directory "c:\wamp\www\aspa">
     AllowOverride All
     Order allow,deny
     Allow from all
  </Directory>

在windows hosts文件中,我添加了以下行

183.177.103.2 aspa.itpark.mn
183.177.103.2 www.aspa.itpark.mn

我也删除了“#”

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

但子域名无效。 aspa.itpark.mn去itpark.mn。这个虚拟主机有什么问题。请帮帮我。

0 个答案:

没有答案