Forum Moderators: phranque

Message Too Old, No Replies

Rewrites not working over SSL

Why?!?!?

         

l0pht

12:50 pm on Apr 16, 2007 (gmt 0)

10+ Year Member



I have site that was setup without SSL and now we're testing it over SSL. I have setup my Vhost correctly and use the exact same rewrite rules. It just basically adds a /1/ in front of all the specified urls. I have this machine setup as a reverse proxy and it works if you access the site via http:// with all the rewrites working correctly. If you access the site via https:// the rewrites show up in the rewrite log but the webpage does not render correctly. Any ideas as this is driving me crazy! I have the newest version of Apache 2.2.4.

RewriteEngine on
RewriteRule ^/css(.*) /1/css$1 [P]
RewriteRule ^/ban_prod(.*) /1/ban_prod$1 [P]

jdMorgan

1:55 pm on Apr 16, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just a guess:

When doing a proxy through-put with the [P] flag on RewriteRule, the substitution URL should be canonical, i.e. https://back-end-domain-or-IP/1/ban_prod$1

It's possible that without this, the server may get confused -- especially if you have UseCanonicalName On.

Jim

l0pht

2:59 pm on Apr 16, 2007 (gmt 0)

10+ Year Member



Yah no dice on putting a full domain name in. I have to rewrite the urls to put /1/ in front of them because our proxies will send the info to different backend servers ie /1/ will go to server 1 and /2/ will go to server 2. Any other ideas? I can browse to the rewrite that is in the log files but still nothing on the actually webpage.

l0pht

3:30 pm on Apr 16, 2007 (gmt 0)

10+ Year Member



Nevermind figured it out. In my SSL configuration their was an option for SSLProxyEngine that I needed to turn on. Thanks guys!