Apache 域名解析
Posted cc2008
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Apache 域名解析相关的知识,希望对你有一定的参考价值。
apache 安装路径
/etc/httpd/conf.d/httpd-vhosts.conf
httpd-vhosts.conf 详情况
#端口
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
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 [email protected]
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>
以上是关于Apache 域名解析的主要内容,如果未能解决你的问题,请参考以下文章