Apache/Httpd配置虚拟服务器
  • 分类:Hi
  • 发表:2020-03-23
  • 围观(54)
  • 评论(0)
NameVirtualHost 156.236.*.*
<VirtualHost *.cool>
DocumentRoot "/var/www/html"
ErrorLog "logs/error-*.log"
ServerName *.cool
</VirtualHost>
<VirtualHost xjj.64ml.com>
DocumentRoot "/var/www/xjj"
ErrorLog "logs/error-xjj.log"
ServerName xjj.64ml.com
</VirtualHost>

 

测试

http -t 

   

共有 0 条留言


Top