读书人

wamp上http.conf虚拟路径的配置

发布时间: 2012-12-27 10:17:09 作者: rapoo

wamp下http.conf虚拟路径的配置

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>

读书人网 >编程

热点推荐