]> git.pld-linux.org Git - packages/apache.git/commitdiff
- updated some comments
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 10 Feb 2001 00:29:59 +0000 (00:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added some AddLanguage/AddCharset directives
- use MultiViews in /home/httpd/html

Changed files:
    apache-httpd.conf -> 1.17

apache-httpd.conf

index cfc470de1d7aad833dde99983882479dc2293060..d4d4ae5823e91e0a03c8c8c5989e7bac72e057d6 100644 (file)
@@ -64,7 +64,7 @@ ServerRoot "/usr"
 LockFile /var/run/httpd.lock
 
 ### ScoreBoardFile
-# File used to store internal server process information.
+# File used to store internal server process information. Not all
 # architectures require this. But if yours does (you'll know because this
 # file will be created when you run Apache) then you *must* ensure that no
 # two invocations of Apache share the same scoreboard file.
@@ -83,7 +83,6 @@ ScoreBoardFile /var/run/httpd.scoreboard
 ResourceConfig  /dev/null
 AccessConfig    /dev/null
 
-
 #
 # Server-pool size regulation.  Rather than making you guess how many
 # server processes you need, Apache dynamically adapts to the load it
@@ -121,8 +120,14 @@ MaxClients 150
 # as to avoid problems after prolonged use when Apache (and maybe the
 # libraries it uses) leak memory or other resources.  On most systems, this
 # isn't really needed, but a few (such as Solaris) do have notable leaks
-# in the libraries.
+# in the libraries.  For these platforms, set to something like 10000
+# or so; a setting of 0 means unlimited.
 #
+# NOTE: This value does not include keepalive requests after the initial
+#       request per connection. For example, if a child process handles
+#       an initial request and 10 subsequent "keptalive" requests, it
+#       would only count as 1 request towards this limit.
+
 MaxRequestsPerChild 30
 
 ### Listen
@@ -132,6 +137,11 @@ MaxRequestsPerChild 30
 #Listen 12.34.56.78:80
 Listen 80
 
+# Listen can take two arguments.
+# (this is an extension for supporting IPv6 addresses)
+#Listen :: 80
+#Listen 0.0.0.0 80
+
 ### BindAddress
 # You can support virtual hosts with this option. This directive is used to
 # tell the server which IP address to listen to. It can either contain "*",
@@ -209,6 +219,10 @@ ServerAdmin admin@your_domain.org
 # You will have to access it by its address (e.g., http://123.45.67.89/)
 # anyway, and this will make redirections work in a sensible way.
 #
+# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
+# machine always knows itself by this address. If you use Apache strictly for
+# local testing and development, you may use 127.0.0.1 as the server name.
+#
 #ServerName new.host.name
 
 #
@@ -250,7 +264,7 @@ DocumentRoot "/home/httpd/html"
 # Note that "MultiViews" must be named *explicitly* --- "Options All"
 # doesn't give it to you.
 #
-       Options Indexes FollowSymLinks
+       Options Indexes FollowSymLinks MultiViews
 
 #
 # This controls which options the .htaccess files in directories can
@@ -276,14 +290,14 @@ 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 /*/public_html>
+#<Directory /home/*/public_html>
 #    AllowOverride FileInfo AuthConfig Limit
 #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
 #    <Limit GET POST OPTIONS PROPFIND>
 #        Order allow,deny
 #        Allow from all
 #    </Limit>
-#    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
+#    <LimitExcept GET POST OPTIONS PROPFIND>
 #        Order deny,allow
 #        Deny from all
 #    </Limit>
@@ -294,7 +308,7 @@ UserDir public_html
 # directory index.  Separate multiple entries with spaces.
 #
 <IfModule mod_dir.c>
-DirectoryIndex index.html index.htm index.shtml index.cgi index.php
+       DirectoryIndex index.html index.htm index.shtml index.cgi index.php
 </IfModule>
 
 #
@@ -311,7 +325,10 @@ AccessFileName .htaccess
 # .htaccess files.  If you change the AccessFileName directive above,
 # be sure to make the corresponding changes here.
 #
-<Files .htaccess>
+# Also, folks tend to use names such as .htpasswd for password
+# files, so this will protect those as well.
+#
+<Files ~ "^\.ht">
        Order allow,deny
        Deny from all
 </Files>
@@ -531,9 +548,10 @@ AddDescription "GZIP compressed tar archive" .tgz
 # HeaderName is the name of a file which should be prepended to
 # directory indexes. 
 #
-# The server will first look for name.html and include it if found.
-# If name.html doesn't exist, the server will then look for name.txt
-# and include it as plaintext if found.
+# If MultiViews are amongst the Options in effect, the server will
+# first look for name.html and include it if found.  If name.html
+# doesn't exist, the server will then look for name.txt and include
+# it as plaintext if found.
 #
 ReadmeName README
 HeaderName HEADER
@@ -556,18 +574,66 @@ AddEncoding x-gzip gz
 #
 # AddLanguage allows you to specify the language of a document. You can
 # then use content negotiation to give a browser a file in a language
-# it can understand.  Note that the suffix does not have to be the same
-# as the language keyword --- those with documents in Polish (whose
-# net-standard language code is pl) may wish to use "AddLanguage pl .po" 
-# to avoid the ambiguity with the common suffix for perl scripts.
-#
-AddLanguage en .en
-AddLanguage fr .fr
+# it can understand.
+#
+# Note 1: The suffix does not have to be the same as the language
+# keyword --- those with documents in Polish (whose net-standard
+# language code is pl) may wish to use "AddLanguage pl .po" to
+# avoid the ambiguity with the common suffix for perl scripts.
+#
+# Note 2: The example entries below illustrate that in quite
+# some cases the two character 'Language' abbriviation is not
+# identical to the two character 'Country' code for its country,
+# E.g. 'Danmark/dk' versus 'Danish/da'.
+#
+# Note 3: In the case of 'ltz' we violate the RFC by using a three char
+# specifier. But there is 'work in progress' to fix this and get
+# the reference data for rfc1766 cleaned up.
+#
+# Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
+# French (fr) - German (de) - Greek-Modern (el)
+# Italian (it) - Korean (kr) - Norwegian (no)
+# Portugese (pt) - Luxembourgeois* (ltz)
+# Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
+# Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
+# Russian (ru)
+#
+AddLanguage ca .ca
+AddLanguage cz .cz
+AddLanguage da .dk
 AddLanguage de .de
-AddLanguage da .da
+AddLanguage en .en
 AddLanguage el .el
+AddLanguage es .es
+AddLanguage et .ee
+AddLanguage fr .fr
+AddLanguage he .he
 AddLanguage it .it
+AddLanguage ja .ja
+AddLanguage kr .kr
+AddLanguage ltz .lu
+AddLanguage nl .nl
+AddLanguage no .no
 AddLanguage pl .po
+AddLanguage pt .pt
+AddLanguage pt-br .pt-br
+AddLanguage ru .ru
+AddLanguage sv .se
+AddLanguage tw .tw
+
+AddCharset Big5 .Big5 .big5
+AddCharset CP866 .cp866
+AddCharset ISO-8859-2 .iso-pl
+AddCharset ISO-8859-5 .iso-ru
+AddCharset ISO-8859-8 .iso8859-8
+AddCharset ISO-2022-JP .his
+AddCharset ISO-2022-KR .iso-kr
+AddCharset KOI8-R .koi8-r
+AddCharset UCS-2 .ucs2
+AddCharset UCS-4 .ucs4
+AddCharset UTF-8 .utf8
+AddCharset WINDOWS-1251 .cp-1251
+
 #
 # LanguagePriority allows you to give precedence to some languages
 # in case of a tie during content negotiation.
@@ -575,6 +641,23 @@ AddLanguage pl .po
 #
 LanguagePriority en pl fr de
 
+#
+# AddType allows you to tweak mime.types without actually editing it, or to
+# make certain files to be certain types.
+#
+# For example, the PHP 3.x module (not part of the Apache distribution - see
+# http://www.php.net) will typically use:
+#
+#AddType application/x-httpd-php3 .php3
+#AddType application/x-httpd-php3-source .phps
+#
+# And for PHP 4.x, use:
+#
+#AddType application/x-httpd-php .php
+#AddType application/x-httpd-php-source .phps
+#
+#AddType application/x-tar .tgz
+
 #
 # AddHandler allows you to map certain file extensions to "handlers",
 # actions unrelated to filetype. These can be either built into the server
This page took 0.050633 seconds and 4 git commands to generate.