source: nagios/apache-nagios.conf@ 385

Last change on this file since 385 was 381, checked in by Rick van der Zwet, 12 years ago

Now without typos'

File size: 1.2 KB
Line 
1ScriptAlias /nagios/cgi-bin /usr/local/www/nagios/cgi-bin
2
3<Directory /usr/local/www/nagios/cgi-bin>
4 Options ExecCGI FollowSymLinks
5 AllowOverride None
6 Order allow,deny
7 Allow from all
8
9 RewriteEngine on
10 RewriteCond %{REMOTE_ADDR} =83.86.204.79 [OR]
11 RewriteCond %{REMOTE_ADDR} ^192\.168\..*$
12 RewriteRule .* - [E=REMOTE_USER:nagiosadmin]
13</Directory>
14
15
16
17Alias /nagios /usr/local/www/nagios
18<Directory /usr/local/www/nagios>
19 DirectoryIndex index.php
20 AddHandler application/x-httpd-php .php
21 Order allow,deny
22 Allow from all
23</Directory>
24
25Alias /pnp4nagios /usr/local/www/pnp
26<Directory /usr/local/www/pnp>
27 AddHandler application/x-httpd-php .php
28 Order allow,deny
29 Allow from all
30 RewriteEngine On
31 Options FollowSymLinks
32 # Installation directory
33 RewriteBase /pnp4nagios/
34 # Protect application and system files from being viewed
35 RewriteRule ^(application|modules|system) - [F,L]
36 # Allow any files or directories that exist to be displayed directly
37 RewriteCond %{REQUEST_FILENAME} !-f
38 RewriteCond %{REQUEST_FILENAME} !-d
39 # Rewrite all other URLs to index.php/URL
40 RewriteRule .* index.php/$0 [PT,L]
41</Directory>
42
Note: See TracBrowser for help on using the repository browser.