-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #58 unsupported apache feature CGIPassAuth for older version like…
… on RHEL7
- Loading branch information
Showing
11 changed files
with
83 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
icinga::repos::configure_backports: true | ||
icinga::web::apache_cgi_pass_auth: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
icinga::repos::configure_backports: true | ||
icinga::web::apache_cgi_pass_auth: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
--- | ||
icinga::repos::manage_epel: true | ||
icinga::web::apache_cgi_pass: false | ||
icinga::web::apache_cgi_pass_auth: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
icinga::repos::manage_epel: true | ||
icinga::web::apache_cgi_pass_auth: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
icinga::repos::manage_epel: true | ||
icinga::web::apache_cgi_pass_auth: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
icinga::repos::manage_epel: true | ||
icinga::web::apache_cgi_pass_auth: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
icinga::repos::manage_epel: true | ||
icinga::web::apache_cgi_pass_auth: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
icinga::repos::manage_epel: true | ||
icinga::web::apache_cgi_pass_auth: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Alias /icingaweb2 "/usr/share/icingaweb2/public" | ||
|
||
<Directory "/usr/share/icingaweb2/public"> | ||
Options SymLinksIfOwnerMatch | ||
AllowOverride None | ||
|
||
DirectoryIndex index.php | ||
|
||
<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 "/etc/icingaweb2" | ||
|
||
EnableSendfile Off | ||
|
||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
RewriteBase /icingaweb2/ | ||
RewriteCond %{REQUEST_FILENAME} -s [OR] | ||
RewriteCond %{REQUEST_FILENAME} -l [OR] | ||
RewriteCond %{REQUEST_FILENAME} -d | ||
RewriteRule ^.*$ - [NC,L] | ||
RewriteRule ^.*$ index.php [NC,L] | ||
</IfModule> | ||
|
||
<IfModule !mod_rewrite.c> | ||
DirectoryIndex error_norewrite.html | ||
ErrorDocument 404 /icingaweb2/error_norewrite.html | ||
</IfModule> | ||
|
||
# forwarding PHP requests to FPM | ||
# remove comments if you want to use FPM | ||
<FilesMatch "\.php$"> | ||
<% if @apache_cgi_pass_auth -%> CGIPassAuth on | ||
<% end -%> | ||
SetHandler "proxy:fcgi://127.0.0.1:9000" | ||
ErrorDocument 503 /icingaweb2/error_unavailable.html | ||
</FilesMatch> | ||
</Directory> |