Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. # General config
  2. User www-data
  3. Group www-data
  4. DefaultRuntimeDir /var/run/apache2
  5. PidFile /var/run/apache2/apache2.pid
  6. Timeout 300
  7. HostnameLookups Off
  8.  
  9. # Keepalive configuration
  10. KeepAlive on
  11. MaxKeepAliveRequests 100
  12. KeepAliveTimeout 5
  13.  
  14. # Logging configuration
  15. ErrorLog /var/log/apache2/error.log
  16. LogLevel warn
  17. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  18. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  19. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  20. LogFormat "%{Referer}i -> %U" referer
  21.  
  22. # Directives
  23. <Directory />
  24. Options FollowSymlinks
  25. AllowOverride None
  26. Require all denied
  27. </Directory>
  28. <Directory /usr/share>
  29. AllowOverride None
  30. Require all granted
  31. </Directory>
  32. <Directory /var/www/>
  33. Options Indexes FollowSymLinks
  34. AllowOverride None
  35. Require all granted
  36. </Directory>
  37. AccessFileName .htaccess
  38. <FilesMatch "^.\ht">
  39. Require all denied
  40. </FilesMatch>
  41.  
  42. # Includes
  43. Include ports.conf
  44. IncludeOptional mods-enabled/*.load
  45. IncludeOptional mods-enabled/*.conf
  46. IncludeOptional conf-enabled/*.conf
  47. IncludeOptional sites-enabled/*.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement