wampserver配置文档

Wampserver文档配置

一、修改默认路径

打开安装录下 \wamp\bin\apache\apache2.4.9\conf\httpd.conf文件

搜索关键字为DocumentRootDirectory,将其对应路径修改为你要的;

二、wampserver图形界面配置

打开安装目录下的wampmanager.iniwampmanager.tpl文件

搜索关键字为Menu.Left,在其下找到www目录,和对应的filename文件对应的默认路径

三、wampserver多站点配置

1、打开安装录下 \wamp\bin\apache\apache2.4.9\conf\httpd.conf文件

搜索关键字httpd-vhost 将其下的一行前面的#注释掉

然后搜索关键字Directory,在其下面找到Deny from all Allow from 127.0.0.1,将前者改为Allow from all 而将后者用#注释掉;

2、打开安装目录下\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhost.conf文件

删掉默认设置参数,然后添加自己想要的站点,格式如下

<VirtualHost *:80>

    DocumentRoot "E:/workplace/JiuJiu"

    ServerName www.test.com

<Directory "E:/workplace/www">

    Options Indexes FollowSymLinks

    AllowOverride all

    Order Allow,Deny

    Allow from all

</Directory>

</VirtualHost>

3、打开系统盘符C盘下:C:\Windows\System32\drivers\etc\hosts文件

修改127.0.0.1    www.test.com

到此多站点配置便已经完成了!

四、修改wampserver默认端口号

打开安装目录下:\wamp\bin\apache\apache2.4.9\conf\httpd.conf文件

搜索关键字Listen 将端口号修改为你要的值

同时搜索关键字ServerName 将其值修改为之前对应的值

五,修改wampserver图标不显示问题

修改安装目录下E:\Program Files\wamp\bin\apache\apache2.4.9\conf\extra\httpd-autoindex.conf文件

#Alias /icons/ "c:/Apache24/icons/"

Alias /icons/ "icons/"

#<Directory "c:/Apache24/icons">

<Directory "icons">

    Options Indexes MultiViews

    AllowOverride None

    Require all granted

</Directory>

 

posted @ 2015-03-24 11:31  罗幕轻寒  阅读(414)  评论(0编辑  收藏  举报