Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServerTokens Prod
- ServerSignature Off
- ServerRoot "/etc/apache2"
- #
- # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
- #
- #<IfModule !mpm_winnt.c>
- #<IfModule !mpm_netware.c>
- LockFile /var/lock/apache2/accept.lock
- #</IfModule>
- #</IfModule>
- #
- # PidFile: The file in which the server should record its process
- # identification number when it starts.
- # This needs to be set in /etc/apache2/envvars
- #
- PidFile ${APACHE_PID_FILE}
- #
- # Timeout: The number of seconds before receives and sends time out.
- #
- Timeout 120
- KeepAlive On
- MaxKeepAliveRequests 100
- KeepAliveTimeout 15
- <IfModule mpm_prefork_module>
- StartServers 1
- MinSpareServers 1
- MaxSpareServers 5
- MaxClients 40
- MaxRequestsPerChild 0
- </IfModule>
- <IfModule mpm_worker_module>
- StartServers 1
- MinSpareThreads 1
- MaxSpareThreads 4
- ThreadLimit 64
- ThreadsPerChild 25
- MaxClients 40
- MaxRequestsPerChild 0
- </IfModule>
- <IfModule mpm_event_module>
- StartServers 1
- MaxClients 40
- MinSpareThreads 1
- MaxSpareThreads 4
- ThreadLimit 64
- ThreadsPerChild 25
- MaxRequestsPerChild 0
- </IfModule>
- User ${APACHE_RUN_USER}
- Group ${APACHE_RUN_GROUP}
- AccessFileName .htaccess
- <Files ~ "^\.ht">
- Order allow,deny
- Deny from all
- Satisfy all
- </Files>
- DefaultType text/plain
- HostnameLookups Off
- ErrorLog /var/log/apache2/error.log
- LogLevel warn
- Include /etc/apache2/mods-enabled/*.load
- Include /etc/apache2/mods-enabled/*.conf
- # Include all the user configurations:
- Include /etc/apache2/httpd.conf
- # Include ports listing
- Include /etc/apache2/ports.conf
- #
- # The following directives define some format nicknames for use with
- # a CustomLog directive (see below).
- # If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i
- #
- LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
- LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
- 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 the virtual host configurations:
- Include /etc/apache2/sites-enabled/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement