Last change
on this file since 317 was 307, checked in by Rick van der Zwet, 13 years ago |
Took me 1h30m to rebuild config for apache, so store it in subversion next time :-)
|
File size:
1.1 KB
|
Rev | Line | |
---|
[307] | 1 | ScriptAlias /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
|
---|
| 11 | RewriteRule .* - [E=REMOTE_USER:nagiosadmin]
|
---|
| 12 | </Directory>
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 | Alias /nagios /usr/local/www/nagios
|
---|
| 17 | <Directory /usr/local/www/nagios>
|
---|
| 18 | DirectoryIndex index.php
|
---|
| 19 | AddHandler application/x-httpd-php .php
|
---|
| 20 | Order allow,deny
|
---|
| 21 | Allow from all
|
---|
| 22 | </Directory>
|
---|
| 23 |
|
---|
| 24 | Alias /pnp4nagios /usr/local/www/pnp
|
---|
| 25 | <Directory /usr/local/www/pnp>
|
---|
| 26 | AddHandler application/x-httpd-php .php
|
---|
| 27 | Order allow,deny
|
---|
| 28 | Allow from all
|
---|
| 29 | RewriteEngine On
|
---|
| 30 | Options FollowSymLinks
|
---|
| 31 | # Installation directory
|
---|
| 32 | RewriteBase /pnp4nagios/
|
---|
| 33 | # Protect application and system files from being viewed
|
---|
| 34 | RewriteRule ^(application|modules|system) - [F,L]
|
---|
| 35 | # Allow any files or directories that exist to be displayed directly
|
---|
| 36 | RewriteCond %{REQUEST_FILENAME} !-f
|
---|
| 37 | RewriteCond %{REQUEST_FILENAME} !-d
|
---|
| 38 | # Rewrite all other URLs to index.php/URL
|
---|
| 39 | RewriteRule .* index.php/$0 [PT,L]
|
---|
| 40 | </Directory>
|
---|
| 41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.