[Record] An HTTP configuration file reference record

Source: Internet
Author: User

# Cat.. /conf/httpd.conf | Grep-ve "^$|^#" Servertokens osserverroot "/etc/httpd" Pidfile run/httpd.pidtimeout 60KeepAlive Offmaxkeepaliverequests 100KeepAliveTimeout 15<ifmodule prefork.c>startservers 8MinSpareServers 5MaxSpareSe RVers 20ServerLimit 256MaxClients 256MaxRequestsPerChild 4000</ifmodule><ifmodule Worker.c>start Servers 4MaxClients 600MinSpareThreads 25MaxSpareThreads threadsperchild 25MaxRequestsPerCh ILD 0</ifmodule>listen 80LoadModule auth_basic_module modules/mod_auth_basic.soloadmodule auth_digest_module Modules/mod_auth_digest.soloadmodule Authn_file_module Modules/mod_authn_file.soloadmodule Authn_alias_module Modules/mod_authn_alias.soloadmodule Authn_anon_module Modules/mod_authn_anon.soloadmodule Authn_dbm_module Modules/mod_authn_dbm.soloadmodule Authn_default_module Modules/mod_authn_default.soloadmodule Authz_host_module Modules/mod_authz_host.soloadmodule Authz_user_module Modules/moD_authz_user.soloadmodule authz_owner_module modules/mod_authz_owner.soloadmodule authz_groupfile_module modules/ Mod_authz_groupfile.soloadmodule authz_dbm_module modules/mod_authz_dbm.soloadmodule authz_default_module modules/ Mod_authz_default.soloadmodule ldap_module modules/mod_ldap.soloadmodule authnz_ldap_module modules/mod_authnz_ Ldap.soloadmodule include_module modules/mod_include.soloadmodule log_config_module modules/mod_log_ Config.soloadmodule logio_module modules/mod_logio.soloadmodule env_module modules/mod_env.soloadmodule ext_filter_ Module Modules/mod_ext_filter.soloadmodule mime_magic_module modules/mod_mime_magic.soloadmodule expires_module Modules/mod_expires.soloadmodule deflate_module modules/mod_deflate.soloadmodule headers_module modules/mod_ Headers.soloadmodule usertrack_module modules/mod_usertrack.soloadmodule setenvif_module modules/mod_ Setenvif.soloadmodule mime_module modules/mod_mime.soloadmodule dav_module modules/mod_dav.soloadmodule status_ Module modules/Mod_status.soloadmodule autoindex_module modules/mod_autoindex.soloadmodule info_module modules/mod_ Info.soloadmodule dav_fs_module modules/mod_dav_fs.soloadmodule vhost_alias_module modules/mod_vhost_ Alias.soloadmodule negotiation_module modules/mod_negotiation.soloadmodule dir_module modules/mod_dir.soLoadModule Actions_module modules/mod_actions.soloadmodule speling_module modules/mod_speling.soloadmodule userdir_module Modules/mod_userdir.soloadmodule alias_module modules/mod_alias.soloadmodule substitute_module modules/mod_ Substitute.soloadmodule rewrite_module modules/mod_rewrite.soloadmodule proxy_module modules/mod_ Proxy.soloadmodule proxy_balancer_module modules/mod_proxy_balancer.soloadmodule proxy_ftp_module modules/mod_ Proxy_ftp.soloadmodule proxy_http_module modules/mod_proxy_http.soloadmodule proxy_ajp_module modules/mod_proxy_ Ajp.soloadmodule proxy_connect_module modules/mod_proxy_connect.soloadmodule cache_module modules/mod_ Cache.soloadmodule Suexec_module Modules/mod_Suexec.soloadmodule disk_cache_module modules/mod_disk_cache.soloadmodule cgi_module modules/mod_cgi.soLoadModule Version_module modules/mod_version.soinclude conf.d/*.confuser apachegroup apacheserveradmin [email protected] Servername-usecanonicalname offdocumentroot "/var/www/html" Header set accept-ranges bytes<directory/> Options F Ollowsymlinks allowoverride none</directory><directory "/var/www/html" > Options followsymlinks AllowO Verride None Order allow,deny allow from All</directory><ifmodule mod_userdir.c> # # Userdir is di Sabled By default since it can confirm the presence # of a username on the system (depending on home directory # per    Missions). # Userdir Disabled # To enable requests to/~user/to serve the user's public_html # directory, remove the " Userdir disabled "line above, and uncomment # The following line instead: # #UserDir Public_html</ifmodule&gt ;D Irectoryindex index.htmL index.html.varAccessFileName. htaccess<files ~ "^\.ht" > Order allow,deny deny from all Satisfy all</fi Les>typesconfig/etc/mime.typesdefaulttype text/plain<ifmodule mod_mime_magic.c> MIMEMagicFile conf/magic </ifmodule>hostnamelookups offerrorlog logs/error_logloglevel Warnlogformat "%h%l%u%t \"%r\ "%>s%b \"%{Refer Er}i\ "\"%{user-agent}i\ "" Combinedlogformat "%h%l%u%t \"%r\ "%>s%b" Commonlogformat "%{referer}i--%u" Referer Logformat "%{user-agent}i" Agentcustomlog logs/access_log combinedserversignature onalias/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> # location of the WebDAV lock database. 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-8A Ddiconbyencoding (cmp,/icons/compressed.gif) x-compress x-gzipaddiconbytype (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 Exeaddicon/icons/binhex.gif. Hqxaddicon/icons/tar.gif. TarAddIcon /icons/world2.gif. wrl. wrl.gz. vrml. vrm. Ivaddicon/icons/compressed.gif.  Z. Z. tgz. zipaddicon/icons/a.gif. ps. ai. epsaddicon/icons/layout.gif. html. shtml. htm. pdfaddicon/icons/text.gif . txtaddicon/icons/c.gif. caddicon/icons/p.gif. pl. pyaddicon/icons/f.gif. foraddicon/icons/dvi.gif. Dviaddicon/icon S/uuencoded.gif. uuaddicon/icons/script.gif. conf. Sh. Shar. csh. Ksh. tcladdicon/icons/tex.gif . gif coreaddicon/icons/back.gif. Addicon/icons/hand.right.gif readmeaddicon/icons/folder.gif ^^ DIrectory^^addicon/icons/blank.gif ^^ Blankicon^^defaulticon/icons/unknown.gifreadmename README.htmlHeaderName Header.htmlindexignore.?? * *~ *# header* readme* RCS CVS *,v *,taddlanguage ca. caaddlanguage cs. cz. csaddlanguage da dkaddlanguage de. Deaddlang Uage el eladdlanguage en enaddlanguage eo. eoaddlanguage es. Esaddlanguage et etaddlanguage fr. fraddlanguage He HeAdd Language hr. hraddlanguage it. Itaddlanguage ja. jaaddlanguage ko. Koaddlanguage ltz. ltzaddlanguage nl nladdlanguage nn . Nnaddlanguage No. noaddlanguage Pl. poaddlanguage pt. ptaddlanguage pt-br. Pt-braddlanguage ru. Ruaddlanguage sv. svAddLa Nguage zh-cn zh-cnaddlanguage zh-tw. zh-twlanguagepriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl p T pt-br Ru sv ZH-CN zh-twforcelanguagepriority Prefer fallbackadddefaultcharset utf-8addtype application/x-compress. Zaddtype application/x-gzip. gz. Tgzaddtype application/x-x509-ca-cert. Crtaddtype application/x-pkcs7-crl. Crladdhandler Type-map VARaddtype text/html. Shtmladdoutputfilter includes. shtmlalias/error/"/var/www/error/" <IfModule mod_negotiation.c ><ifmodule mod_include.c> <directory "/var/www/error" > allowoverride None Options includes        NoExec 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" Nokeepalivebrowsermatch "MSIE 4\.0b2;" Nokeepalive downgrade-1.0 Force-response-1.0browsermatch "RealPlayer 4\.0" Force-response-1.0browsermatch "java/1\.0" Force-response-1.0browsermatch "jdk/1\.0" Force-response-1.0browsermatch "Microsoft Data Access Internet Publishing Provider "Redirect-carefullybrowsermatch" MS FrontPage "Redirect-carefullybrowsermatch" ^webdrive " Redirect-carefullybrowsermatch "^WEBDAVFS/1. [0123] "Redirect-carefullybrowsermatch" ^gnome-vfs/1.0 "RedirecT-carefullybrowsermatch "^xml Spy" Redirect-carefullybrowsermatch "^DREAMWEAVER-WEBDAV-SCM1" redirect-carefully# Configuration of the virtual host # cd/etc/httpd/conf.d# cat test1.abc.com.conf <virtualhost *:80> Documentroot/data/web/serve Rname test1.abc.com errorlog logs/test1.abc.com-error_log customlog logs/test1.abc.com-access_log common< /virtualhost># cat test2.abc.com.conf <virtualhost *:80> documentroot/data/web/servername test2.a bc.com errorlog logs/test2.abc.com-error_log #RewriteEngine on #RedirectMatch 301 ^tyl/(. +) $ http://a aa.test2.abc.com/$1 customlog logs/test2.abc.com-access_log Common <ifmodule Mod_rewrite.c>rewriteengi Ne onrewriterule ^/aaa/(. *) http://aaa.test2.abc.com/aaa/$1 [R=301,l]rewriterule ^/bbb/(. *) http://bbb.test2.abc.com /bbb/$1 [R=301,l]rewriterule ^/ccc/(. *) http://ccc.test2.abc.com/ccc/$1 [r=301,l] </ifmodule></virtualhost >

  

[Record] An HTTP configuration file reference record

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.