Apache 域名解析
apache 安装路径
/etc/httpd/conf.d/httpd-vhosts.conf
httpd-vhosts.conf 详情况
#端口
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin qq@qq.cn
DocumentRoot "/var/www/html/"
<Directory "/var/www/html/">
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
</Directory>
ErrorLog "logs/error_log"
CustomLog "logs/access_log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin qq@qq.cn
DocumentRoot "/var/www/html/qq"
ServerName www.qq.com
<Directory "/var/www/html/qq/">
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
</Directory>
ErrorLog "logs/www.qq.com.error_log"
CustomLog "logs/www.qq.com.access_log" combined
</VirtualHost>