Mobile app version of vmapp.org
Login or Join
Frith620

: Rewrite URL with masking from HTTP to HTTPS site (on a different server) are certs needed on first server? I have a *:80 virtual host in Apache 2.2.15 which is just a bunch of URL rewrites

@Frith620

Posted in: #Https #ModRewrite #Proxy

I have a *:80 virtual host in Apache 2.2.15 which is just a bunch of URL rewrites like:

ServerAlias foo.bar biz.baz tit.tat
RewriteRule / somesite.com (R=301,L)

ServerAlias differentsite.com example.it
RewriteRule ....


I want to do a masked URL rewrite so babysnakes.com goes to dancingfool.com/moms.php
I tried using mod_rewrite with P flag and I tried mod_proxy and then realized it doesn't handle SSL proxying, that mod_ssl should handle. What I am not clear on is whether I can do SSLProxyEngine in a non SSL vhost config (no certs defined etc).

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Frith620

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria169

You may need to use SSLProxyEngine On to make the proxy work via SSL.

RewriteEngine On
SSLProxyEngine On
RewriteCond %{HTTP_HOST} ^babysnakes.com$ [NC]
RewriteRule ^/$ dancingfool.com/moms.php [P,L]


I did a quick test of proxy requests to an SSL page using the [P] flag and it worked for me. (different domains though)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme