配置apache域名

一、在apache的php.ini中

配置域名:www.a.com
修改apache配置文件httpd.conf
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
改为:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

修改apache/conf/extra/httpd-vhost.conf
添加以下域名配置

    ServerAdmin
auzheking@163com
    DocumentRoot "d:/wamp/www/a"
ServerName
www.a.com
    ServerAlias www.a.com
    ErrorLog "logs/a.log"
    CustomLog "logs/a.log" common


二、在windows中


你可能感兴趣的:(配置apache域名)