Apache rewrites to run only /nagios at SSL?

Hugo van der Kooij hvdkooij at vanderkooij.org
Wed Apr 19 07:29:41 CEST 2006


On Wed, 19 Apr 2006, ankush grover wrote:

> >         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]
>
> 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

You may have noticed the specifics above. It works for a real directory
aka: /boss but not for the aliased parts aka: /nagios

So this post does not add anything new.

Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list