Advertisement
Guest User

Untitled

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