简介:这是wamp下http.conf虚拟路径的配置的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。
class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=327022' scrolling='no'>1、打开LoadModule rewrite_module modules/mod_rewrite.so
2、打开
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
3、在httpd-vhosts.conf中配置虚拟访问路径
<VirtualHost *:80>
DocumentRoot "D:\wamp\www\zfProject"
ServerName nation.demo
SetEnv APPLICATION_ENV "development"
<Directory D:\wamp\www\zfProject>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot D:\wamp\www
ServerName localhost
</VirtualHost>