]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Continue making httpd.conf even smaller.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 4 Apr 2005 17:29:56 +0000 (17:29 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 4 Apr 2005 17:29:56 +0000 (17:29 +0000)
* httpd.conf.in: Remove PidFile; move a bunch of configuration options that
  are backed by equivalent run-time defaults to...
* extra/httpd-default.conf.in (added): ...here.
* extra/httpd-mpm.conf.in: Move PidFile example here.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/simple-conf@160063 13f79535-47bb-0310-9956-ffa450edef68

docs/conf/extra/httpd-default.conf.in [new file with mode: 0644]
docs/conf/extra/httpd-mpm.conf.in
docs/conf/httpd.conf.in

diff --git a/docs/conf/extra/httpd-default.conf.in b/docs/conf/extra/httpd-default.conf.in
new file mode 100644 (file)
index 0000000..5fd1166
--- /dev/null
@@ -0,0 +1,56 @@
+#
+# This configuration file reflects default settings for Apache HTTP Server.
+#
+# You may change these, but chances are that you may not need to.
+#
+
+#
+# Timeout: The number of seconds before receives and sends time out.
+#
+Timeout 300
+
+#
+# KeepAlive: Whether or not to allow persistent connections (more than
+# one request per connection). Set to "Off" to deactivate.
+#
+KeepAlive On
+
+#
+# MaxKeepAliveRequests: The maximum number of requests to allow
+# during a persistent connection. Set to 0 to allow an unlimited amount.
+# We recommend you leave this number high, for maximum performance.
+#
+MaxKeepAliveRequests 100
+
+#
+# KeepAliveTimeout: Number of seconds to wait for the next request from the
+# same client on the same connection.
+#
+KeepAliveTimeout 15
+
+#
+# AccessFileName: The name of the file to look for in each directory
+# for additional configuration directives.  See also the AllowOverride 
+# directive.
+#
+AccessFileName .htaccess
+
+#
+# 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
index 733571b1cd33246c7ac2c05c9ee3326f9e67e7e8..4be32190061796f82bce923cd8a9dcd46303f3a4 100644 (file)
@@ -5,6 +5,15 @@
 # installed httpd.  Use "apachectl -l" to find out the
 # active mpm.
 
+#
+# PidFile: The file in which the server should record its process
+# identification number when it starts.
+#
+# Note that this is the default PidFile for most MPMs.
+#
+<IfModule !mpm_netware_module>
+    PidFile @rel_runtimedir@/httpd.pid
+</IfModule>
 
 # prefork MPM
 # StartServers: number of server processes to start
index 16b47b62ae9664c991a5fe1d71c266fbd50245b7..762bcc2d8c22582c91a1ebd9ef6678c142f07363 100644 (file)
@@ -45,39 +45,6 @@ ServerRoot "@@ServerRoot@@"
 #LockFile @rel_logfiledir@/accept.lock
 #ScoreBoardFile @rel_logfiledir@/apache_runtime_status
 
-#
-# PidFile: The file in which the server should record its process
-# identification number when it starts.
-#
-<IfModule !mpm_netware_module>
-    PidFile @rel_runtimedir@/httpd.pid
-</IfModule>
-
-#
-# Timeout: The number of seconds before receives and sends time out.
-#
-Timeout 300
-
-#
-# KeepAlive: Whether or not to allow persistent connections (more than
-# one request per connection). Set to "Off" to deactivate.
-#
-KeepAlive On
-
-#
-# MaxKeepAliveRequests: The maximum number of requests to allow
-# during a persistent connection. Set to 0 to allow an unlimited amount.
-# We recommend you leave this number high, for maximum performance.
-#
-MaxKeepAliveRequests 100
-
-#
-# KeepAliveTimeout: Number of seconds to wait for the next request from the
-# same client on the same connection.
-#
-KeepAliveTimeout 15
-
-
 #
 # Listen: Allows you to bind Apache to specific IP addresses and/or
 # ports, instead of the default. See also the <VirtualHost>
@@ -232,13 +199,6 @@ DocumentRoot "@exp_htdocsdir@"
     DirectoryIndex index.html
 </IfModule>
 
-#
-# 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. 
@@ -350,26 +310,6 @@ LogLevel warn
     #CustomLog @rel_logfiledir@/access_log combined
 </IfModule>
 
-#
-# 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
-
 <IfModule alias_module>
     #
     # Aliases: Add here as many aliases as you need (with no limit). The format is 
@@ -587,4 +527,4 @@ ServerSignature On
 <IfModule ssl_module>
 SSLRandomSeed startup builtin
 SSLRandomSeed connect builtin
-</IfModule>
\ No newline at end of file
+</IfModule>