apache2.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ErrorLog /dev/stderr
  2. LogLevel warn
  3. # LogLevel info rewrite:trace3
  4. # Permission denied: AH00099: could not create /var/run/apache2.pid
  5. PidFile /tmp/apache2.pid
  6. IncludeOptional mods-enabled/*.load
  7. IncludeOptional mods-enabled/*.conf
  8. Timeout 128
  9. KeepAlive On
  10. MaxKeepAliveRequests 32
  11. KeepAliveTimeout 8
  12. Listen 8080
  13. # <IfModule ssl_module>
  14. # Listen 443
  15. # </IfModule>
  16. # <IfModule mod_gnutls.c>
  17. # Listen 443
  18. # </IfModule>
  19. ServerTokens Prod
  20. ServerSignature Off
  21. FileETag None
  22. TraceEnable off
  23. Header always set X-Frame-Options "sameorigin"
  24. Header set X-XSS-Protection "1; mode=block"
  25. LogFormat "%{%Y-%m-%dT%H:%M:%S%z}t %h \"%r\" %>s" neat
  26. CustomLog /dev/stdout neat
  27. <VirtualHost *:8080>
  28. # TODO ssl
  29. # TODO sendfile ?
  30. DocumentRoot /koel
  31. </VirtualHost>
  32. <Directory />
  33. AllowOverride None
  34. Require all denied
  35. </Directory>
  36. AccessFileName .htaccess
  37. <FilesMatch "^\.ht">
  38. Require all denied
  39. </FilesMatch>
  40. <Directory /koel>
  41. # TODO check
  42. Options -Indexes -Includes -FollowSymLinks +SymLinksIfOwnerMatch
  43. # TODO check
  44. AllowOverride All
  45. Require all granted
  46. </Directory>
  47. IncludeOptional conf-enabled/*.conf