HTTPS Problem

Jul 8, 2009 at 2:26 AM
Edited Jul 8, 2009 at 2:30 AM

Hello,

A similar question was raised previously:

When using HTTPS urls, such as:

https://externalsite/Portal/x/y/z.jsp

the URL is rewritten as:

http://externalsite:443/Portal/x/y/z.jsp

It seems the HTTPS is dropped and replaced with HTTP and port :443. This becomes a problem when the site does not support HTTP requests on port 443.

[internalsite] is not running SSL, only [externalsite]. The first request seems handled ok until I login to [internalsite] and are redirected to other pages.

RewriteBase /Portal
RewriteCond %{HTTPS} =off
RewriteCond %{HTTP_HOST} (.+)
RewriteRule ^(.*)$ https://%2/Portal$1 [R=301,L]
RewriteRule ^(.*)$ http://internalsite/Portal$1 [P,L]

cheers,
Davide

Coordinator
Jul 8, 2009 at 12:52 PM

You know it just occurred to me what the issue might be with that.  Apparently the Uri Builder isn't intelligent enough to change the scheme when the port is set to HTTPS.  I am going to move this to a bug.

Coordinator
Jul 8, 2009 at 12:53 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Jul 8, 2009 at 2:49 PM
Edited Jul 8, 2009 at 2:49 PM

Try this latest test release in this work item

http://urlrewriter.codeplex.com/WorkItem/View.aspx?WorkItemId=8000