码迷,mamicode.com
首页 > Web开发 > 详细

CentOS7 apache创建虚拟路径

时间:2018-05-19 23:52:31      阅读:556      评论:0      收藏:0      [点我收藏+]

标签:virt   errorlog   eth   root   ESS   rect   oca   style   serve   

#virtual host 1     # 虚拟主机1的配置
<VirtualHost 172.105.215.36:80>
        ServerName mumuling.com
DocumentRoot "/var/www/html/wordpress"
   # ErrorLog "/var/www/html/log/error_mumuling.com.log"
   # CustomLog "/var/www/html/log/custom_mumuling.com.log" combined
   # <Location /server-status>
    #    SetHandler server-status
   # </Location>
    <Directory /var/www/html/wordpress>
        <RequireAll>
        Require all granted
     #   Require not ip 192.168.1
        </RequireAll>
    </Directory>
</VirtualHost>

 

CentOS7 apache创建虚拟路径

标签:virt   errorlog   eth   root   ESS   rect   oca   style   serve   

原文地址:https://www.cnblogs.com/cpxjl/p/9062097.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!