We have a similar problem.

We have always been doing it the Virtual host way (virtual on port 80 
redirects (permanant) to virtual on 443). In my Virtual host for port 80, 
I have:

Redirect permanent      /       https://www.mysite.com/home/index.htm

But this works fine only for the root (/) request, meaning if the request 
comes for

http://www.mysite.com/          Redirects Permanant to Home page over SSL 
works ----->    https://www.mysite.com/home/index.htm

But if the request comes directly for using old bookmarks: 

http://www.mysite.com/home/index.htm            It Redirects to -----> 
https://www.mysite.com/home/index.htmhome/index.htm

which results in a 404, page not found (notice home/index.htm appended to 
the SSL redirect destination)

-----------------------------------

What we want is just that all request (to the home page or subsequent 
pages via old bookmarks) coming in on port 80 ie. over http:// gets 
replaced with https://

Basically just toggle the protocol from http to https. We do not want to 
Rewrite any of the links in our HTML response. We just want to be able to 
Rewrite the URL request.

Thanks
-jigs




"Charlie Smith" <[EMAIL PROTECTED]> 
04/04/2005 10:18 AM
Please respond to
users@httpd.apache.org


To
[EMAIL PROTECTED], users@httpd.apache.org
cc

Subject
Re: [EMAIL PROTECTED] Problem redirecting http to https






Yes, I thought maybe that was a dumb answer.  A rewrite is nice to rewrite 
some
of the url's that
may appear in referencing pages.   This way you might avoid some of the 
error
messages or
security warmings that may appear when you load references to http under 
ssl. 


So the rewrite actually happens when you make a url call where the 
protocal is
rewritten from
http to https, and also when the page is returned to you with references 
to
http.  These are then
modified to comeback as https references.  Kind of a nice little feature. 
So,
if any of your code
makes links to http://yoursite/...  it would be changed to make references 
to
https://yoursite/...

Charlie ;)
4/4/05

>>> [EMAIL PROTECTED] 4/4/2005 11:00:01 AM >>>
On Apr 4, 2005 12:55 PM, Charlie Smith <[EMAIL PROTECTED]> wrote:
> Just uses a rewrite instead of a redirect.
> 
> >>> [EMAIL PROTECTED] 4/4/2005 10:35:20 AM >>>
> 
> How does this differ from creating the virtual host for port 80, which
> I have done, and putting my redirect line in it, which seems to work
> ... ?

Yes, I understand that. :) I was wondering if/why doing it one way
might be better than doing it the other.

---------------------------------------------------------------------
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: [EMAIL PROTECTED] 
   "   from the digest: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



------------------------------------------------------------------------------
This message may contain confidential information, and is
intended only for the use of the individual(s) to whom it
is addressed.
------------------------------------------------------------------------------


---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to