X-Git-Url: https://dehnerts.com/gitweb/?a=blobdiff_plain;f=apache2.conf;h=4ea69636f04a05a398106c92b87ae7f29cc3a56d;hb=78663806709ef0de76d491cc2dfc7286ba45d348;hp=a2cca1e6de2f15303a32f93aa7c932846b298e69;hpb=ff3ec8d0d3e4d8b82509cd4cbe0f26d0e9a85b6d;p=sysconfig%2Fapache2.git diff --git a/apache2.conf b/apache2.conf index a2cca1e..4ea6963 100644 --- a/apache2.conf +++ b/apache2.conf @@ -24,9 +24,9 @@ # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin -# with "/", the value of ServerRoot is prepended -- so "/var/log/apache2/foo.log" -# with ServerRoot set to "" will be interpreted by the -# server as "//var/log/apache2/foo.log". +# with "/", the value of ServerRoot is prepended -- so "foo.log" +# with ServerRoot set to "/etc/apache2" will be interpreted by the +# server as "/etc/apache2/foo.log". # ### Section 1: Global Environment @@ -42,21 +42,17 @@ # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available -# at ); +# at ); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # -ServerRoot "/etc/apache2" +#ServerRoot "/etc/apache2" # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # -# -# -LockFile /var/lock/apache2/accept.lock -# -# +LockFile ${APACHE_LOCK_DIR}/accept.lock # # PidFile: The file in which the server should record its process @@ -87,7 +83,7 @@ MaxKeepAliveRequests 100 # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # -KeepAliveTimeout 15 +KeepAliveTimeout 5 ## ## Server-Pool Size Regulation (MPM specific) @@ -103,16 +99,19 @@ KeepAliveTimeout 15 StartServers 2 MinSpareServers 1 MaxSpareServers 5 - MaxClients 50 + MaxClients 10 MaxRequestsPerChild 0 # worker MPM # StartServers: initial number of server processes to start -# MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare +# ThreadLimit: ThreadsPerChild can be changed to this maximum value during a +# graceful restart. ThreadLimit can only be changed by stopping +# and starting Apache. # ThreadsPerChild: constant number of worker threads in each server process +# MaxClients: maximum number of simultaneous client connections # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 2 @@ -126,18 +125,18 @@ KeepAliveTimeout 15 # event MPM # StartServers: initial number of server processes to start -# MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process +# MaxClients: maximum number of simultaneous client connections # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 2 - MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 + MaxClients 150 MaxRequestsPerChild 0 @@ -160,6 +159,7 @@ AccessFileName .htaccess Order allow,deny Deny from all + Satisfy all # @@ -171,7 +171,14 @@ AccessFileName .htaccess # keep browsers from trying to display binary files as though they are # text. # -DefaultType text/plain +# It is also possible to omit any default MIME type and let the +# client's browser guess an appropriate action instead. Typically the +# browser will decide based on the file's extension then. In cases +# where no good assumption can be made, letting the default MIME type +# unset is suggested instead of forcing the browser to accept +# incorrect metadata. +# +DefaultType None # @@ -190,7 +197,7 @@ HostnameLookups Off # logged here. If you *do* define an error logfile for a # container, that host's errors will be logged there and not here. # -ErrorLog /var/log/apache2/error.log +ErrorLog ${APACHE_LOG_DIR}/error.log # # LogLevel: Control the number of messages logged to the error_log. @@ -200,14 +207,14 @@ ErrorLog /var/log/apache2/error.log LogLevel warn # Include module configuration: -Include /etc/apache2/mods-enabled/*.load -Include /etc/apache2/mods-enabled/*.conf +Include mods-enabled/*.load +Include mods-enabled/*.conf # Include all the user configurations: -Include /etc/apache2/httpd.conf +Include httpd.conf # Include ports listing -Include /etc/apache2/ports.conf +Include ports.conf # # The following directives define some format nicknames for use with @@ -220,16 +227,12 @@ LogFormat "%h %l %u %t \"%r\" %>s %O" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent -# -# Define an access log for VirtualHosts that don't define their own logfile -CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined - # Include of directories ignores editors' and dpkg's backup files, # see README.Debian for details. # Include generic snippets of statements -Include /etc/apache2/conf.d/ +Include conf.d/ # Include the virtual host configurations: -Include /etc/apache2/sites-enabled/ +Include sites-enabled/