You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # see http://sources.debian.net/src/apache2/2.4.10-1/debian/config-dir/apache2.conf
  2. Mutex file:/var/lock/apache2 default
  3. PidFile /var/run/apache2/apache2.pid
  4. Timeout 300
  5. KeepAlive On
  6. MaxKeepAliveRequests 100
  7. KeepAliveTimeout 5
  8. User www-data
  9. Group www-data
  10. HostnameLookups Off
  11. ErrorLog /var/log/apache2/error.log
  12. LogLevel warn
  13. IncludeOptional mods-enabled/*.load
  14. IncludeOptional mods-enabled/*.conf
  15. # ports.conf
  16. Listen 80
  17. <IfModule ssl_module>
  18. Listen 443
  19. </IfModule>
  20. <IfModule mod_gnutls.c>
  21. Listen 443
  22. </IfModule>
  23. DocumentRoot "/var/www/html/"
  24. <Directory />
  25. Options FollowSymLinks
  26. AllowOverride None
  27. Require all denied
  28. </Directory>
  29. <Directory /var/www/html/>
  30. Options FollowSymLinks
  31. AllowOverride All
  32. Require all granted
  33. </Directory>
  34. <Location "/api/">
  35. ProxyPass http://BACKEND_HOST:BACKEND_PORT/api/ retry=0
  36. ProxyPassReverse http://BACKEND_HOST:BACKEND_PORT/api/
  37. </Location>
  38. <Location "/signalr/">
  39. ProxyPass http://BACKEND_HOST:BACKEND_PORT/signalr/ retry=0
  40. ProxyPassReverse http://BACKEND_HOST:BACKEND_PORT/signalr/
  41. </Location>
  42. <Location "/signalr/connect">
  43. ProxyPass ws://BACKEND_HOST:BACKEND_PORT/signalr/connect retry=0
  44. </Location>
  45. <Location "/signalr/reconnect">
  46. ProxyPass ws://BACKEND_HOST:BACKEND_PORT/signalr/reconnect retry=0
  47. </Location>
  48. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  49. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  50. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  51. LogFormat "%{Referer}i -> %U" referer
  52. LogFormat "%{User-agent}i" agent
  53. CustomLog /var/log/apache2/access.log combined
  54. <FilesMatch \.php$>
  55. SetHandler application/x-httpd-php
  56. </FilesMatch>
  57. # Multiple DirectoryIndex directives within the same context will add
  58. # to the list of resources to look for rather than replace
  59. # https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
  60. DirectoryIndex disabled
  61. DirectoryIndex index.php index.html