腾讯云服务器centos7下yum搭建lamp环境虚拟主机的域名直接指向了根目录求解答

[复制链接]
查看: 248|回复: 0

12

主题

12

帖子

44

积分

新手上路

Rank: 1

积分
44
发表于 2019-2-17 10:21:26 | 显示全部楼层 |阅读模式

          直接主配置文件后面加的配置
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.
# IncludeOptional conf.d/*.conf
#include ../conf.d/vhost.conf
NameVirtualHost *:80

        ServerName www.ucan.me
        DocumentRoot /var/www/
        
            Options Indexes FollowSymLinks
            AllowOverride None
            Order allow,deny
            Allow from all
        

根目录的的设置
DocumentRoot "/var/"

#
# Relax access to content within /var/www.
#

    AllowOverride None
    # Allow open access:
    Require all granted


# Further relax access to the default document root:

    #


         
              
               
            
            

              
         
      
      
      
腾讯云
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

精彩图文



在线客服(工作时间:9:00-22:00)
400-600-6565

内容导航

微信客服

Copyright   ©2015-2019  云服务器社区  Powered by©Discuz!  技术支持:尊托网络     ( 湘ICP备15009499号-1 )