您的位置:首页 > 运维架构 > Apache

linux apache vhosts 配置(2.4以上版本)

2015-06-30 17:24 645 查看
修改apache主配置文件
469 # Virtual hosts
470 Include conf/extra/httpd-vhosts.conf
将470行的注释去掉
<VirtualHost 192.168.0.3:80>

ServerAdmin Admin@mnt.com

DocumentRoot "/home/mnt"

ServerName www.mnt.com

ErrorLog "logs/mnt.com-error_log"

CustomLog "logs/mnt.com-access_log" common

<Directory "/home/mnt">

# Options Indexes FollowSymLlinks

# AllowOverride ALL

# Order allow,deny

# Allow from all

Require all granted

</Directory>

</VirtualHost>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: