wamp安装以及域名的配置

来源:互联网 发布:淘宝售后安装平台接单 编辑:程序博客网 时间:2024/06/02 13:44
  1. wamp的安装
    去官网下载,安装的时候默认安装就好了

  2. 域名的配置
    找到bin目录下面的conf,打开httpd.conf,搜索# Virtual hosts

# Virtual hostsInclude conf/extra/httpd-vhosts.conf

把include前面的#去掉,引入httpd-vhosts.conf

打开extra目录下的httpd-vhosts.conf文件,在文件的尾巴添加下面代码

VirtualHost *:80>    DocumentRoot "根目录"    ServerName  你要设置的域名    <Directory "根目录">            AllowOverride All    Options Indexes FollowSymLinks    Require all granted    </Directory></VirtualHost>

最后配置下你的host文件,增加一行
127.0.0.0 XXXX.cn
最后重启wamp搞定

0 0
原创粉丝点击