Advertisement
Sergio_Istea

apache2.conf

Sep 21st, 2023
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. DefaultRuntimeDir ${APACHE_RUN_DIR}
  2.  
  3. idFile ${APACHE_PID_FILE}
  4.  
  5. Timeout 300
  6.  
  7. KeepAlive On
  8.  
  9. MaxKeepAliveRequests 100
  10.  
  11. KeepAliveTimeout 5
  12.  
  13.  
  14. User ${APACHE_RUN_USER}
  15. Group ${APACHE_RUN_GROUP}
  16.  
  17. HostnameLookups Off
  18.  
  19. ErrorLog ${APACHE_LOG_DIR}/error.log
  20.  
  21. LogLevel warn
  22.  
  23. IncludeOptional mods-enabled/*.load
  24. IncludeOptional mods-enabled/*.conf
  25.  
  26. Include ports.conf
  27.  
  28.  
  29. <Directory />
  30. Options FollowSymLinks
  31. AllowOverride None
  32. Require all denied
  33. </Directory>
  34.  
  35. <Directory /usr/share>
  36. AllowOverride None
  37. Require all granted
  38. </Directory>
  39.  
  40. <Directory /var/www/>
  41. Options Indexes FollowSymLinks
  42. AllowOverride None
  43. Require all granted
  44. </Directory>
  45.  
  46.  
  47.  
  48.  
  49.  
  50. AccessFileName .htaccess
  51.  
  52. <FilesMatch "^\.ht">
  53. Require all denied
  54. </FilesMatch>
  55.  
  56.  
  57. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  58. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  59. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  60. LogFormat "%{Referer}i -> %U" referer
  61. LogFormat "%{User-agent}i" agent
  62.  
  63.  
  64. IncludeOptional conf-enabled/*.conf
  65.  
  66. IncludeOptional sites-enabled/*.conf
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement