Apache访问控制和Web虚拟主机
vim /usr/local/httpd/conf/extra/httpd-vhosts.confOrder allow,deny
Allow from all
(httpd2.4.x这里的两行换成Require all granted)
DocumentRoot "/usr/local/httpd/htdocs/www"
ServerName www.hiahia.com
ErrorLog "logs/www.hiahia.com_error_log"
CustomLog "logs/www.hiahia.com_access_log" common
DocumentRoot "/usr/local/httpd/htdocs/blog"
ServerName blog.hiahia.com
ErrorLog "logs/blog.hiahia.com_error_log"
CustomLog "logs/blog.hiahia.com_access_log" common
页:
[1]