📄 httpd-std.conf.in
字号:
# Options Indexes FollowSymLinks## AllowOverride controls what directives may be placed in .htaccess files.# It can be "All", "None", or any combination of the keywords:# Options FileInfo AuthConfig Limit# AllowOverride None## Controls who can get stuff from this server.# Order allow,deny Allow from all</Directory>## UserDir: The name of the directory that is appended onto a user's home# directory if a ~user request is received.#UserDir public_html## Control access to UserDir directories. The following is an example# for a site where these directories are restricted to read-only.##<Directory /home/*/public_html># AllowOverride FileInfo AuthConfig Limit Indexes# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec# <Limit GET POST OPTIONS PROPFIND># Order allow,deny# Allow from all# </Limit># <LimitExcept GET POST OPTIONS PROPFIND># Order deny,allow# Deny from all# </LimitExcept>#</Directory>## DirectoryIndex: sets the file that Apache will serve if a directory# is requested.## The index.html.var file (a type-map) is used to deliver content-# negotiated documents. The MultiViews Option can be used for the # same purpose, but it is much slower.#DirectoryIndex index.html index.html.var## AccessFileName: The name of the file to look for in each directory# for additional configuration directives. See also the AllowOverride # directive.#AccessFileName .htaccess## The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. #<Files ~ "^\.ht"> Order allow,deny Deny from all</Files>## TypesConfig describes where the mime.types file (or equivalent) is# to be found.#TypesConfig @rel_sysconfdir@/mime.types## DefaultType is the default MIME type the server will use for a document# if it cannot otherwise determine one, such as from filename extensions.# If your server contains mostly text or HTML documents, "text/plain" is# a good value. If most of your content is binary, such as applications# or images, you may want to use "application/octet-stream" instead to# keep browsers from trying to display binary files as though they are# text.#DefaultType text/plain## The mod_mime_magic module allows the server to use various hints from the# contents of the file itself to determine its type. The MIMEMagicFile# directive tells the module where the hint definitions are located.#<IfModule mod_mime_magic.c> MIMEMagicFile @rel_sysconfdir@/magic</IfModule>## HostnameLookups: Log the names of clients or just their IP addresses# e.g., www.apache.org (on) or 204.62.129.132 (off).# The default is off because it'd be overall better for the net if people# had to knowingly turn this feature on, since enabling it means that# each client request will result in AT LEAST one lookup request to the# nameserver.#HostnameLookups Off## EnableMMAP: Control whether memory-mapping is used to deliver# files (assuming that the underlying OS supports it).# The default is on; turn this off if you serve from NFS-mounted # filesystems. On some systems, turning it off (regardless of# filesystem) can improve performance; for details, please see# http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap##EnableMMAP off## EnableSendfile: Control whether the sendfile kernel support is # used to deliver files (assuming that the OS supports it).# The default is on; turn this off if you serve from NFS-mounted # filesystems. Please see# http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile##EnableSendfile off## ErrorLog: The location of the error log file.# If you do not specify an ErrorLog directive within a <VirtualHost># container, error messages relating to that virtual host will be# logged here. If you *do* define an error logfile for a <VirtualHost># container, that host's errors will be logged there and not here.#ErrorLog @rel_logfiledir@/error_log## LogLevel: Control the number of messages logged to the error_log.# Possible values include: debug, info, notice, warn, error, crit,# alert, emerg.#LogLevel warn## The following directives define some format nicknames for use with# a CustomLog directive (see below).#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedLogFormat "%h %l %u %t \"%r\" %>s %b" commonLogFormat "%{Referer}i -> %U" refererLogFormat "%{User-agent}i" agent# You need to enable mod_logio.c to use %I and %O#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio## The location and format of the access logfile (Common Logfile Format).# If you do not define any access logfiles within a <VirtualHost># container, they will be logged here. Contrariwise, if you *do*# define per-<VirtualHost> access logfiles, transactions will be# logged therein and *not* in this file.#CustomLog @rel_logfiledir@/access_log common## If you would like to have agent and referer logfiles, uncomment the# following directives.##CustomLog @rel_logfiledir@/referer_log referer#CustomLog @rel_logfiledir@/agent_log agent## If you prefer a single logfile with access, agent, and referer information# (Combined Logfile Format) you can use the following directive.##CustomLog @rel_logfiledir@/access_log combined## ServerTokens# This directive configures what you return as the Server HTTP response# Header. The default is 'Full' which sends information about the OS-Type# and compiled in modules.# Set to one of: Full | OS | Minor | Minimal | Major | Prod# where Full conveys the most information, and Prod the least.#ServerTokens Full## Optionally add a line containing the server version and virtual host# name to server-generated pages (internal error documents, FTP directory # listings, mod_status and mod_info output etc., but not CGI generated # documents or custom error documents).# Set to "EMail" to also include a mailto: link to the ServerAdmin.# Set to one of: On | Off | EMail#ServerSignature On## Aliases: Add here as many aliases as you need (with no limit). The format is # Alias fakename realname## Note that if you include a trailing / on fakename then the server will# require it to be present in the URL. So "/icons" isn't aliased in this# example, only "/icons/". If the fakename is slash-terminated, then the # realname must also be slash terminated, and if the fakename omits the # trailing slash, the realname must also omit it.## We include the /icons/ alias for FancyIndexed directory listings. If you# do not use FancyIndexing, you may comment this out.#Alias /icons/ "@exp_iconsdir@/"<Directory "@exp_iconsdir@"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all</Directory>## This should be changed to the ServerRoot/manual/. The alias provides# the manual, even if you choose to move your DocumentRoot. You may comment# this out if you do not care for the documentation.#AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "@exp_manualdir@$1"<Directory "@exp_manualdir@"> Options Indexes AllowOverride None Order allow,deny Allow from all <Files *.html> SetHandler type-map </Files> SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1 RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2</Directory>## ScriptAlias: This controls which directories contain server scripts.# ScriptAliases are essentially the same as Aliases, except that# documents in the realname directory are treated as applications and# run by the server when requested rather than as documents sent to the client.# The same rules about trailing "/" apply to ScriptAlias directives as to# Alias.#ScriptAlias /cgi-bin/ "@exp_cgidir@/"<IfModule mod_cgid.c>## Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path># for setting UNIX socket for communicating with cgid.##Scriptsock @rel_runtimedir@/cgisock</IfModule>## "@exp_cgidir@" should be changed to whatever your ScriptAliased# CGI directory exists, if you have that configured.#<Directory "@exp_cgidir@"> AllowOverride None Options None Order allow,deny Allow from all</Directory>## Redirect allows you to tell clients about documents which used to exist in# your server's namespace, but do not anymore. This allows you to tell the# clients where to look for the relocated document.# Example:# Redirect permanent /foo http://www.example.com/bar## Directives controlling the display of server-generated directory listings.### IndexOptions: Controls the appearance of server-generated directory# listings.#IndexOptions FancyIndexing VersionSort## AddIcon* directives tell the server which icon to show for different# files or filename extensions. These are only displayed for# FancyIndexed directories.#AddIconByEncoding (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 .gz .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 /icons/uuencoded.gif .uuAddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tclAddIcon /icons/tex.gif .texAddIcon /icons/bomb.gif coreAddIcon /icons/back.gif ..AddIcon /icons/hand.right.gif READMEAddIcon /icons/folder.gif ^^DIRECTORY^^AddIcon /icons/blank.gif ^^BLANKICON^^## DefaultIcon is which icon to show for files which do not have an icon# explicitly set.#DefaultIcon /icons/unknown.gif## AddDescription allows you to place a short description after a file in# server-generated indexes. These are only displayed for FancyIndexed# directories.# Format: AddDescription "description" filename##AddDescription "GZIP compressed document" .gz#AddDescription "tar archive" .tar#AddDescription "GZIP compressed tar archive" .tgz## ReadmeName is the name of the README file the server will look for by# default, and append to directory listings.## HeaderName is the name of a file which should be prepended to# directory indexes. ReadmeName README.htmlHeaderName HEADER.html## IndexIgnore is a set of filenames which directory indexing should ignore# and not include in the listing. Shell-style wildcarding is permitted.#IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -