设为首页 加入收藏

TOP

CentOS 源码安装apache/HTTP服务(三)
2019-10-09 20:05:39 】 浏览:96
Tags:CentOS 源码 安装 apache/HTTP 服务
;                         #用户组(默认daemon)

ServerAdmin you@example.com                          #邮箱地址

ServerName www.bdqn.com                         #网站域名

DocumentRoot "/usr/local/httpd/htdocs"           #网页存储位置

DirectoryIndex index.html                                     #默认主页

ErrorLog "logs/error_log"                                      #错误日志文件存储位置

LogLevel warn                                                        #日志级别

CustomLog "logs/access_log" common               #正常访问日志

 

Include conf/extra/proxy-html.conf                     #虚拟主机路径

 

 

2:区域配置项

[root@localhost ~]# vim /usr/local/httpd/conf/httpd.conf

<Directory />                      #根目录

    AllowOverride none

    Require all denied

</Directory>

 

<Directory "/usr/local/httpd/htdocs">    #限制路径

    Options Indexes FollowSymLinks

    AllowOverride None

    Require all granted                  #允许所有主机访问还可以拒绝所有人访问

</Directory>

 

 

 

首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇无法更新运行时文件夹共享状态:.. 下一篇linux shell的输出效果

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目