Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # It is split into several files forming the configuration hierarchy outlined
- # below, all located in the /etc/apache2/ directory:
- #
- # /etc/apache2/
- # |-- apache2.conf
- # | `-- ports.conf
- # |-- mods-enabled
- # | |-- *.load
- # | `-- *.conf
- # |-- conf.d
- # | `-- *
- # Global configuration Apache 2.4.*
- PidFile ${APACHE_PID_FILE}
- Timeout 30
- KeepAlive Off
- #MaxKeepAliveRequests 300
- #KeepAliveTimeout 1
- #ะะปั 1Gb RAM
- <IfModule mpm_prefork_module>
- StartServers 3
- MinSpareServers 3
- MaxSpareServers 6
- ServerLimit 14
- MaxClients 14
- MaxRequestsPerChild 333
- </IfModule>
- # These need to be set in /etc/apache2/envvars
- #User ${APACHE_RUN_USER}
- #Group ${APACHE_RUN_GROUP}
- User www-data
- Group www-data
- AccessFileName .htaccess
- <Files ~ "^\.ht">
- Require all denied
- </Files>
- DefaultType None
- HostnameLookups Off
- ErrorLog ${APACHE_LOG_DIR}/error.log
- LogLevel warn
- # Include module configuration:
- Include mods-enabled/*.load
- Include mods-enabled/*.conf
- Include conf-enabled/*.conf
- Include conf.d/*.conf
- # Include list of ports to listen on and which to use for name based vhosts
- #Include ports.conf
- # Include the virtual host configurations:
- #Include sites-enabled/
- LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
- LogFormat "%a %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
- LogFormat "%b" bytes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement