You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dave Morrow <da...@autodata.net> on 2005/08/12 17:57:06 UTC

[users@httpd] Rewrite Issue with SSL Site

Hi all, I have a webserver which is serving a Tomcat application through
mod_jk (1.2).  The end-users browse the site using SSL only (ie.
https://www.mydomain.com/myapplication )

It's working fine.

I would like to use re-writing to force the root of the website to
rewrite to the application when an end user browses to
https://www.mydomain.com ommitting the "/myapplication"

This works in my httpd.conf but results in a browser redirect which I
would prefer to not have;

RedirectMatch ^/$ /myapplication/login.jsp

This doesn't work under SSL but works without SSL but I cannot figure
out why;

RewriteEngine on
RewriteRule   ^/$  /myapplication  [R]

Does anyone out there have expertise in this area and would be willing
to assist?  Any help would be greatly appreciated.


David A. Morrow
Technical Systems Lead
Autodata Solutions Company
David.Morrow@Autodata.Net
http://www.autodata.net
Tel: (519) 951-6079
Fax: (519) 451-6615 

< Poor planning on your part does not necessarily constitute an
emergency on my part! >

This message has originated from Autodata Solutions. The attached
material is the Confidential and Proprietary Information of Autodata
Solutions. This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please delete
this message and notify the Autodata system administrator at
Administrator@autodata.net <ma...@autodata.net>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Rewrite Issue with SSL Site

Posted by John Hicks <jo...@gulfbridge.net>.
Dave Morrow wrote:
> Hi all, I have a webserver which is serving a Tomcat application through
> mod_jk (1.2).  The end-users browse the site using SSL only (ie.
> https://www.mydomain.com/myapplication )
> 
> It's working fine.
> 
> I would like to use re-writing to force the root of the website to
> rewrite to the application when an end user browses to
> https://www.mydomain.com ommitting the "/myapplication"
> 
> This works in my httpd.conf but results in a browser redirect which I
> would prefer to not have;
> 
> RedirectMatch ^/$ /myapplication/login.jsp
> 
> This doesn't work under SSL but works without SSL but I cannot figure
> out why;
> 
> RewriteEngine on
> RewriteRule   ^/$  /myapplication  [R]
> 
> Does anyone out there have expertise in this area and would be willing
> to assist?  Any help would be greatly appreciated.

Remember that the SSL domain is set up separately in your httpd.conf. 
Did you place the Rewrite directives under both domains?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org