Config file to comment line

Source: Internet
Author: User

[[email protected] ~]# grep-v ' # '/etc/httpd/conf/httpd.conf |grep-v ' ^$ '

Servertokens OS

ServerRoot "/ETC/HTTPD"

Pidfile Run/httpd.pid

Timeout 60

KeepAlive OFF

Maxkeepaliverequests 100

KeepAliveTimeout 15

<ifmodule prefork.c>

Startservers 8

Minspareservers 5

Maxspareservers 20

Serverlimit 256

MaxClients 256

Maxrequestsperchild 4000

</IfModule>

<ifmodule worker.c>

Startservers 4

MaxClients 300

Minsparethreads 25

Maxsparethreads 75

Threadsperchild 25

Maxrequestsperchild 0

</IfModule>

Listen 80

LoadModule Auth_basic_module modules/mod_auth_basic.so

LoadModule Auth_digest_module modules/mod_auth_digest.so

LoadModule Authn_file_module modules/mod_authn_file.so

LoadModule Authn_alias_module modules/mod_authn_alias.so

LoadModule Authn_anon_module modules/mod_authn_anon.so

LoadModule Authn_dbm_module modules/mod_authn_dbm.so

LoadModule Authn_default_module modules/mod_authn_default.so

LoadModule Authz_host_module modules/mod_authz_host.so

LoadModule Authz_user_module modules/mod_authz_user.so

LoadModule Authz_owner_module modules/mod_authz_owner.so

LoadModule Authz_groupfile_module modules/mod_authz_groupfile.so

LoadModule Authz_dbm_module modules/mod_authz_dbm.so

LoadModule Authz_default_module modules/mod_authz_default.so

LoadModule Ldap_module modules/mod_ldap.so

LoadModule Authnz_ldap_module modules/mod_authnz_ldap.so

LoadModule Include_module modules/mod_include.so

LoadModule Log_config_module modules/mod_log_config.so

LoadModule Logio_module modules/mod_logio.so

LoadModule Env_module modules/mod_env.so

LoadModule Ext_filter_module modules/mod_ext_filter.so

LoadModule Mime_magic_module modules/mod_mime_magic.so

LoadModule Expires_module modules/mod_expires.so

LoadModule Deflate_module modules/mod_deflate.so

LoadModule Headers_module modules/mod_headers.so

LoadModule Usertrack_module modules/mod_usertrack.so

LoadModule Setenvif_module modules/mod_setenvif.so

LoadModule Mime_module modules/mod_mime.so

LoadModule Dav_module modules/mod_dav.so

LoadModule Status_module modules/mod_status.so

LoadModule Autoindex_module modules/mod_autoindex.so

LoadModule Info_module modules/mod_info.so

LoadModule Dav_fs_module modules/mod_dav_fs.so

LoadModule Vhost_alias_module modules/mod_vhost_alias.so

LoadModule Negotiation_module modules/mod_negotiation.so

LoadModule Dir_module modules/mod_dir.so

LoadModule Actions_module modules/mod_actions.so

LoadModule Speling_module modules/mod_speling.so

LoadModule Userdir_module modules/mod_userdir.so

LoadModule Alias_module modules/mod_alias.so

LoadModule Substitute_module modules/mod_substitute.so

LoadModule Rewrite_module modules/mod_rewrite.so

LoadModule Proxy_module modules/mod_proxy.so

LoadModule Proxy_balancer_module modules/mod_proxy_balancer.so

LoadModule Proxy_ftp_module modules/mod_proxy_ftp.so

LoadModule Proxy_http_module modules/mod_proxy_http.so

LoadModule Proxy_ajp_module modules/mod_proxy_ajp.so

LoadModule Proxy_connect_module modules/mod_proxy_connect.so

LoadModule Cache_module modules/mod_cache.so

LoadModule Suexec_module modules/mod_suexec.so

LoadModule Disk_cache_module modules/mod_disk_cache.so

LoadModule Cgi_module modules/mod_cgi.so

LoadModule Version_module modules/mod_version.so

Include conf.d/*.conf

User Apache

Group Apache

ServerAdmin [email protected]

Usecanonicalname OFF

DocumentRoot "/var/www/html"

<directory/>

Options FollowSymLinks

AllowOverride None

</Directory>

<directory "/var/www/html" >

Options Indexes FollowSymLinks

AllowOverride None

Order Allow,deny

Allow from all

</Directory>

<ifmodule mod_userdir.c>

Userdir disabled

</IfModule>

DirectoryIndex index.html Index.html.var

Accessfilename. htaccess

<files ~ "^\.ht" >

Order Allow,deny

Deny from all

Satisfy All

</Files>

Typesconfig/etc/mime.types

DefaultType Text/plain

<ifmodule mod_mime_magic.c>

Mimemagicfile Conf/magic

</IfModule>

Hostnamelookups OFF

Errorlog Logs/error_log

LogLevel warn

Logformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "" combined

Logformat "%h%l%u%t \"%r\ "%>s%b" common

Logformat "%{referer}i,%u" Referer

Logformat "%{user-agent}i" Agent

Customlog Logs/access_log combined

Serversignature on

alias/icons/"/var/www/icons/"

<directory "/var/www/icons" >

Options Indexes multiviews FollowSymLinks

AllowOverride None

Order Allow,deny

Allow from all

</Directory>

<ifmodule mod_dav_fs.c>

Davlockdb/var/lib/dav/lockdb

</IfModule>

scriptalias/cgi-bin/"/var/www/cgi-bin/"

<directory "/var/www/cgi-bin" >

AllowOverride None

Options None

Order Allow,deny

Allow from all

</Directory>

Indexoptions fancyindexing versionsort namewidth=* HTMLTable charset=utf-8

Addiconbyencoding (cmp,/icons/compressed.gif) x-compress X-gzip

Addiconbytype (txt,/icons/text.gif) text/*

Addiconbytype (img,/icons/image2.gif) image/*

Addiconbytype (snd,/icons/sound2.gif) audio/*

Addiconbytype (vid,/icons/movie.gif) video/*

Addicon/icons/binary.gif. bin. exe

Addicon/icons/binhex.gif. hqx

Addicon/icons/tar.gif. Tar

Addicon/icons/world2.gif. wrl. wrl.gz. vrml. Vrm. IV

Addicon/icons/compressed.gif. Z. Z. tgz. gz. zip

Addicon/icons/a.gif. ps. ai. eps

Addicon/icons/layout.gif. html. shtml. htm. pdf

Addicon/icons/text.gif. txt

Addicon/icons/c.gif. C

addicon/icons/p.gif. pl. py

Addicon/icons/f.gif. For

Addicon/icons/dvi.gif. DVI

Addicon/icons/uuencoded.gif. UU

Addicon/icons/script.gif. conf. Sh. Shar. csh. Ksh. tcl

Addicon/icons/tex.gif. Tex

Addicon/icons/bomb.gif/core

Addicon/icons/back.gif.

Addicon/icons/hand.right.gif README

Addicon/icons/folder.gif ^^ directory^^

Addicon/icons/blank.gif ^^ blankicon^^

Defaulticon/icons/unknown.gif

Readmename readme.html

Headername header.html

AddLanguage ca. ca

AddLanguage CS. cz. CS

AddLanguage da. DK

AddLanguage de. de

AddLanguage el El

AddLanguage en. en

AddLanguage EO. EO

AddLanguage es. es

AddLanguage et et

AddLanguage Fr. fr

AddLanguage He.

AddLanguage hr. HR

AddLanguage it. it

AddLanguage ja. Ja

AddLanguage Ko Ko

AddLanguage Ltz. Ltz

AddLanguage NL NL

AddLanguage nn. nn

AddLanguage No. No

AddLanguage Pl. po

AddLanguage Pt. PT

AddLanguage pt-br. pt-br

AddLanguage ru. ru

AddLanguage sv. sv

AddLanguage ZH-CN. ZH-CN

AddLanguage ZH-TW. zh-tw

Languagepriority en CA cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-br Ru SV ZH-CN ZH-TW

Forcelanguagepriority Prefer Fallback

Adddefaultcharset UTF-8

AddType application/x-compress. Z

AddType application/x-gzip. gz. tgz

AddType Application/x-x509-ca-cert. CRT

AddType application/x-pkcs7-crl. CRL

AddHandler type-map var

AddType text/html. shtml

Addoutputfilter includes. shtml

alias/error/"/var/www/error/"

<ifmodule mod_negotiation.c>

<ifmodule mod_include.c>

<directory "/var/www/error" >

AllowOverride None

Options includesnoexec

Addoutputfilter includes HTML

AddHandler type-map var

Order Allow,deny

Allow from all

Languagepriority en es de fr

Forcelanguagepriority Prefer Fallback

</Directory>

</IfModule>

</IfModule>

Browsermatch "MOZILLA/2" nokeepalive

Browsermatch "MSIE 4\.0b2;" Nokeepalive downgrade-1.0 force-response-1.0

Browsermatch "RealPlayer 4\.0" force-response-1.0

Browsermatch "java/1\.0" force-response-1.0

Browsermatch "jdk/1\.0" force-response-1.0

Browsermatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully

Browsermatch "MS FrontPage" redirect-carefully

Browsermatch "^webdrive" redirect-carefully

Browsermatch "^WEBDAVFS/1. [0123] "redirect-carefully

Browsermatch "^gnome-vfs/1.0" redirect-carefully

Browsermatch "^xml Spy" redirect-carefully

Browsermatch "^DREAMWEAVER-WEBDAV-SCM1" redirect-carefully


This article is from the "Make a few" blog, be sure to keep this source http://9399369.blog.51cto.com/9389369/1765788

Config file to comment line

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.