apache2.conf 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ErrorLog /dev/stderr
  2. LogLevel warn
  3. # LogLevel info rewrite:trace3
  4. # need to be set in /etc/apache2/envvars
  5. User ${APACHE_RUN_USER}
  6. Group ${APACHE_RUN_GROUP}
  7. IncludeOptional mods-enabled/*.load
  8. IncludeOptional mods-enabled/*.conf
  9. Timeout 256
  10. KeepAlive On
  11. MaxKeepAliveRequests 32
  12. KeepAliveTimeout 8
  13. Listen 8080
  14. # <IfModule ssl_module>
  15. # Listen 443
  16. # </IfModule>
  17. # <IfModule mod_gnutls.c>
  18. # Listen 443
  19. # </IfModule>
  20. ServerTokens Prod
  21. ServerSignature Off
  22. Header set X-Frame-Options: "sameorigin"
  23. LogFormat "%{%Y-%m-%dT%H:%M:%S%z}t %h \"%r\" %>s" neat
  24. CustomLog /dev/stdout neat
  25. <VirtualHost *:8080>
  26. # TODO ssl
  27. # TODO sendfile ?
  28. DocumentRoot /koel
  29. </VirtualHost>
  30. <Directory />
  31. Options FollowSymLinks
  32. AllowOverride None
  33. Require all denied
  34. </Directory>
  35. AccessFileName .htaccess
  36. <FilesMatch "^\.ht">
  37. Require all denied
  38. </FilesMatch>
  39. <Directory /koel>
  40. # TODO check
  41. AllowOverride All
  42. Require all granted
  43. </Directory>
  44. IncludeOptional conf-enabled/*.conf