CentOS7 apache创建虚拟路径

#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>

 

posted on 2018-05-19 23:28  小骆骆  阅读(173)  评论(0编辑  收藏  举报

导航