美文网首页APACHE
4.HTTPD配置文件范例

4.HTTPD配置文件范例

作者: Stone_説 | 来源:发表于2020-08-04 00:49 被阅读0次

配置文件

[root@node03 ~]# grep -v "^ *#" /etc/httpd/conf/httpd.conf 
ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
<Directory />
    AllowOverride none
    Require all denied
</Directory>
DocumentRoot "/var/www/html"
<Directory "/var/www">
    AllowOverride None
    Require all granted
</Directory>
<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>
<Files ".ht*">
    Require all denied
</Files>
ErrorLog "logs/error_log"
LogLevel warn
<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog "logs/access_log" combined
</IfModule>
<IfModule alias_module>
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</IfModule>
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>
<IfModule mime_module>
    TypesConfig /etc/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</IfModule>
AddDefaultCharset UTF-8
<IfModule mime_magic_module>
    MIMEMagicFile conf/magic
</IfModule>
EnableSendfile on
IncludeOptional conf.d/*.conf
servername test.stone.com
servertokens prod
KeepAliveTimeout 20
StartServers 2000
MinSpareservers 2000
MaxSpareservers 2000
ServerLimit 2560
MaxRequestsPerChild 40000
MaxClients 256
DocumentRoot "/data/html"
<Directory "/data/html">
    Require all granted
    #Options Indexes FollowSymLinks
    AllowOverride All
</Directory>

#<directory /data/html/admin>
#AuthType Basic
#AuthName "Admin Page"
#AuthUserFile "/etc/httpd/conf.d/.httpuser"
#Require user stone
#Require valid-user
#</directory>

#<Files "*.conf">
    #Require all denied
#</Files>
#<Filesmatch "\.conf$">
    #Require all denied
#</Filesmatch>

#alias /bbs/ /app/forum/
#<Directory "/app/forum">
    #Require all granted
#</Directory>

#<directory /data/html/beijing>
#<requireall>
    #Require all granted
    #Require not ip 192.168.177.0/24
#</requireall>   
#</directory>

相关文章

  • 4.HTTPD配置文件范例

    配置文件

  • spring boot工程使用gradle打包

    配置文件范例 注意:1.注意去除'war'插件;2.Main-Class参数的值须为启动application的c...

  • ES6(3)、参数处理

    1、默认参数值 (1)、ES6之前: (2)、ES6改成:范例1: 范例2: 2、剩余参数 语法: 范例1: 范例...

  • 2018-09-13

    title: 发布范例 发布范例 本范例由百度贴吧- 销锋镝铸 编写 前言 本篇章中范例不是标准,仅供参考 建议边...

  • windows 下配置IP bat脚本

    一、配置一个固定IP范例: 二、配置多个IP范例: 三、配置自动获取IP范例:

  • markdown范例

    markdown范例 markdown范例 Welcome to MarkdownPad 2 MarkdownPa...

  • 两数之和 python

    执行用时为 28 ms 的范例 执行用时为 24 ms 的范例 执行用时为 20 ms 的范例

  • 第五章:面向对象基础——String类的常用方法。

    本章目标 掌握三种引用传递的操作范例 掌握引用传递的作用 1、具体内容 1.1、三道引用传递范例 范例一: 范例二...

  • CSS编码规范

    语义化 语义化标签优先 基于功能命名、基于内容命名、基于表现命名。 简略、明了、无后患 范例 范例 范例 命名规范...

  • 范例

    文 | 望之 如果你希望1小时速成,那么我建议你可以去看看别的文章。 通过文末的链接下载范例程序 下面我们来更改下...

网友评论

    本文标题:4.HTTPD配置文件范例

    本文链接:https://www.haomeiwen.com/subject/xhturktx.html