Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
pnp4icinga
> pnp4icinga-httpd.conf
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File pnp4icinga-httpd.conf of Package pnp4icinga (Revision 2)
Currently displaying revision
2
,
show latest
# # example apache config for PNP4icinga # <IfDefine PNP4NAGIOS> Alias /pnp /usr/share/pnp <Directory /usr/share/pnp> Options None AllowOverride None order allow,deny allow from all AuthType Basic AuthUserFile /etc/icinga/htpasswd.users AuthName "Nagios Access" # AuthGroupFile /etc/icinga/htpasswd.group # Require group icinga Require valid-user # sad to say, but currently necessary: php_admin_flag safe_mode off <IfModule mod_rewrite.c> # Turn on URL rewriting RewriteEngine On Options FollowSymLinks # Installation directory RewriteBase /@PKG_NAME@/ # Protect application and system files from being viewed RewriteRule ^(application|modules|system) - [F,L] # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .* index.php/$0 [PT,L] </IfModule> </Directory> # This SSL configuration is ignored if # "SSL" is not defined, or if "NOSSL" is defined. <IfDefine SSL> <IfDefine !NOSSL> <IfModule mod_ssl.c> SSLEngine on SSLOptions +StdEnvVars Alias /pnp/ /usr/share/pnp <Directory /usr/share/pnp> Options None SSLRequireSSL order allow,deny allow from all AuthType Basic AuthUserFile /etc/icinga/htpasswd.users AuthName "icinga" # AuthGroupFile /etc/icinga/htpasswd.group # Require group icinga Require valid-user # sad to say, but currently necessary: php_admin_flag safe_mode off <IfModule mod_rewrite.c> # Turn on URL rewriting RewriteEngine On Options FollowSymLinks # Installation directory RewriteBase /@PKG_NAME@/ # Protect application and system files from being viewed RewriteRule ^(application|modules|system) - [F,L] # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .* index.php/$0 [PT,L] </IfModule> </Directory> </IfModule> </IfDefine> </IfDefine> </IfDefine>