httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Lindner <mailingli...@xgm.de>
Subject [users@httpd] SSL Proxy
Date Tue, 04 Nov 2008 18:02:58 GMT
Hello,

I have an SSL certificate of www.example.org. Now I want to proxy  
another domain (which is a v-host on the same server) through the  
beforementioned SSL domain.

My first try was: (in the doc root .htaccess)

RewriteCond %{HTTP_HOST} ^.*ssl\.example\.org$
RewriteRule ^(.*)$ http://target.com/$1 [L,P]

This works but the certificate is not valid for ssl.example.org only  
for www. thus the browser raise an error.

Second try: (in a sub dir named proxy .htaccess)

RewriteRule ^(.*)$ http://target.com/$1 [P,L]

There raises the problem that the application on target.com perfoms an  
redirection to /foo/bar/ (mind the first slash) with proxy that makes  
example.org/foo/bar/ which raises an 404. example.org/proxy/foo/bar/  
would be fine.

How can I get around these problems?

Thanks,

Florian

---------------------------------------------------------------------
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


Mime
View raw message