标签:
1、httpd.conf中 AllowOverride All(两个标签内里的)
2、在httpd.conf末端加上此代码:
<VirtualHost *:80> DocumentRoot "C:/xampp/htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/zmt" ServerName www.zmt.com </VirtualHost>
3、在C:\Windows\System32\drivers\etc中找到hosts,最下面修改以下代码:
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 www.zmt.com
# ::1 localhost
标签:
原文地址:http://www.cnblogs.com/hltswd/p/5050447.html