httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <>
Subject Re: [users@httpd] SSL Proxy
Date Wed, 05 Nov 2008 14:18:14 GMT
On Tue, Nov 4, 2008 at 7:02 PM, Florian Lindner <> wrote:
> Hello,
> I have an SSL certificate of 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 ^(.*)$$1 [L,P]
> This works but the certificate is not valid for only for
> www. thus the browser raise an error.
> Second try: (in a sub dir named proxy .htaccess)
> RewriteRule ^(.*)$$1 [P,L]
> There raises the problem that the application on perfoms an
> redirection to /foo/bar/ (mind the first slash) with proxy that makes
> which raises an 404. would
> be fine.
> How can I get around these problems?

You cannot get around the problem caused by an SSL certificate not
matching the hostname of your server. So you will have to use for your servername. 8BTW, there is no reason why you
couldn't have both an http and an https server with the same
servername, if that is the reason why your first atempt was with

However, if both machines are a vhost on the same server, why not make
it easy: Make the ssl server use the same docroot as the none ssl


Bremgarten b. Bern, Switzerland
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message