542179528 发表于 2018-11-17 10:27:04

Apache访问控制和Web虚拟主机

vim /usr/local/httpd/conf/extra/httpd-vhosts.conf  
  Order 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]
查看完整版本: Apache访问控制和Web虚拟主机