Apache rewrites to run only /nagios at SSL?
ankush grover
grover1711 at gmail.com
Wed Apr 19 07:04:40 CEST 2006
On
>
> RewriteEngine On
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^/boss(.*)$
> https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
>
>
> <Directory "/usr/lib/nagios/cgi">
> RewriteEngine On
> RewriteBase /nagios/cgi-bin
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^/nagios(.*)$
> https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
> # SSLRequireSSL
> Options ExecCGI
> AllowOverride None
> Order allow,deny
> Allow from all
> AuthName "Nagios Access"
> AuthType Basic
> AuthUserFile /etc/nagios/htpasswd.users
> Require valid-user
> </Directory>
>
> Alias /nagios "/usr/share/nagios"
>
> <Directory "/usr/share/nagios">
> RewriteEngine On
> RewriteBase /nagios
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^/nagios(.*)$
> https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
> # SSLRequireSSL
> Options None
> AllowOverride None
> Order allow,deny
> Allow from all
> AuthName "Nagios Access"
> AuthType Basic
> AuthUserFile /etc/nagios/htpasswd.users
> Require valid-user
> </Directory>
hey,
I have done rewriting for webmail on my server change the settings are
per your need.
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/webmail(.*)$ https://ipaddress/webmail$1 [L,R]
RewriteLog "/var/log/httpd/rewrite.log"
RewriteLogLevel 4
I am using FC3 with Apache 2.0.52.
Regards
Ankush
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060419/1b0075dd/attachment.html>
More information about the Users
mailing list