2015-07-20 16:40:24 +02:00
|
|
|
Alias /<%= @web_path %> "/vagrant/public"
|
2014-06-06 10:48:22 +02:00
|
|
|
|
2015-07-20 16:40:24 +02:00
|
|
|
<Directory "/vagrant/public">
|
|
|
|
Options SymLinksIfOwnerMatch
|
2014-06-05 16:54:00 +02:00
|
|
|
AllowOverride None
|
2013-07-05 14:46:42 +02:00
|
|
|
|
2015-07-20 16:40:24 +02:00
|
|
|
<IfModule mod_authz_core.c>
|
|
|
|
# Apache 2.4
|
|
|
|
<RequireAll>
|
|
|
|
Require all granted
|
|
|
|
</RequireAll>
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
|
|
# Apache 2.2
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
SetEnv ICINGAWEB_CONFIGDIR <%= @config %>
|
2018-01-11 18:07:40 +01:00
|
|
|
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
2014-06-05 16:54:00 +02:00
|
|
|
|
2013-07-05 14:46:42 +02:00
|
|
|
EnableSendfile Off
|
2018-01-11 18:07:40 +01:00
|
|
|
DirectoryIndex index.php
|
2014-06-05 16:54:00 +02:00
|
|
|
|
2015-07-20 16:40:24 +02:00
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteBase /<%= @web_path %>/
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
|
|
RewriteRule ^.*$ - [NC,L]
|
|
|
|
RewriteRule ^.*$ index.php [NC,L]
|
|
|
|
</IfModule>
|
2014-06-05 16:54:00 +02:00
|
|
|
|
2018-01-11 18:07:40 +01:00
|
|
|
|
|
|
|
<FilesMatch "\.php$">
|
|
|
|
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
|
|
|
ErrorDocument 503 /icingaweb2/error_unavailable.html
|
|
|
|
</FilesMatch>
|
|
|
|
|
2015-07-20 16:40:24 +02:00
|
|
|
<IfModule !mod_rewrite.c>
|
|
|
|
DirectoryIndex error_norewrite.html
|
|
|
|
ErrorDocument 404 /error_norewrite.html
|
|
|
|
</IfModule>
|
2013-06-28 13:45:13 +02:00
|
|
|
</Directory>
|
2018-01-16 13:33:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
ProxyTimeout 3600
|