apache2.conf.erb 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ###################################################################
  2. # #
  3. # WARNING: This config file is automatically generated by Puppet. #
  4. # ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN! #
  5. # #
  6. ###################################################################
  7. Alias /icingaweb2 "<%= @web_root %>/public"
  8. <Directory "<%= @web_root %>/public">
  9. Options SymLinksIfOwnerMatch
  10. AllowOverride None
  11. <IfModule mod_authz_core.c>
  12. # Apache 2.4
  13. <RequireAll>
  14. Require all granted
  15. </RequireAll>
  16. </IfModule>
  17. <IfModule !mod_authz_core.c>
  18. # Apache 2.2
  19. Order allow,deny
  20. Allow from all
  21. </IfModule>
  22. SetEnv ICINGAWEB_CONFIGDIR "<%= @config_dir %>"
  23. EnableSendfile Off
  24. <IfModule mod_rewrite.c>
  25. RewriteEngine on
  26. RewriteBase /icingaweb2/
  27. RewriteCond %{REQUEST_FILENAME} -s [OR]
  28. RewriteCond %{REQUEST_FILENAME} -l [OR]
  29. RewriteCond %{REQUEST_FILENAME} -d
  30. RewriteRule ^.*$ - [NC,L]
  31. RewriteRule ^.*$ index.php [NC,L]
  32. </IfModule>
  33. <IfModule !mod_rewrite.c>
  34. DirectoryIndex error_norewrite.html
  35. ErrorDocument 404 /error_norewrite.html
  36. </IfModule>
  37. </Directory>