wamp2.5配置站点

1、修改httpd.conf文件

启用httpd-vhosts.conf配置文件

Include conf/extra/httpd-vhosts.conf

如果开启伪静态的话

#LoadModule rewrite_module modules/mod_rewrite.so 去掉#

找到“AllowOverride None”改为“AllowOverride All ”;2处

2、修改httpd-vhosts.conf,加入类似下面内容:

<VirtualHost *:80>

DocumentRoot "E:\web\test"

ServerName www.test.lin

ServerAlias www.test.lin

<Directory "E:\web\test">

Options FollowSymLinks

AllowOverride All

Order deny,allow

Require all granted

</Directory>

</VirtualHost>

3.修改hosts文件

127.0.0.1 www.test.lin


你可能感兴趣的:(wamp2.5配置站点)