On
hey,
I have done rewriting for webmail on my server change the settings are per your need.
RewriteEngine onRewriteEngine 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.
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
