Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # General config
- User www-data
- Group www-data
- DefaultRuntimeDir /var/run/apache2
- PidFile /var/run/apache2/apache2.pid
- Timeout 300
- HostnameLookups Off
- # Keepalive configuration
- KeepAlive on
- MaxKeepAliveRequests 100
- KeepAliveTimeout 5
- # Logging configuration
- ErrorLog /var/log/apache2/error.log
- LogLevel warn
- 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
- # Directives
- <Directory />
- Options FollowSymlinks
- AllowOverride None
- Require all denied
- </Directory>
- <Directory /usr/share>
- AllowOverride None
- Require all granted
- </Directory>
- <Directory /var/www/>
- Options Indexes FollowSymLinks
- AllowOverride None
- Require all granted
- </Directory>
- AccessFileName .htaccess
- <FilesMatch "^.\ht">
- Require all denied
- </FilesMatch>
- # Includes
- Include ports.conf
- IncludeOptional mods-enabled/*.load
- IncludeOptional mods-enabled/*.conf
- IncludeOptional conf-enabled/*.conf
- IncludeOptional sites-enabled/*.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement