Hi,

There is a mod_ifenv 0.1 for Apache 1.3.x here :
http://www.modwest.com/download/mod_ifenv-0.1.tar.gz

It was created by Sean Gabriel Heacock <[EMAIL PROTECTED]> but this email is 
no longer valid.

This module could be very handy to create some kind of poor's man HTTPS 
virtual hosting. There are a lot of services I'd like to access to but I want 
them to be SSL wrapped and be shown as a standalone VirtualHost. As I only 
have one IP address, I must find a trick to do it :) I don't care about the 
uniqueness of the SSL certificate "Common Name" and the warning in web 
browsers. My primary matter is to make sure all the data is travelling 
wrapped in a SSL connection.

Until now, I managed to play a bit with mod_rewrite which is perfect for 
replacing "ProxyPass" directive. Unfortunately, there's nothing to 
manage "ProxyPassReverse" the same way...

For now I use tricks I find odd and not elegant to provide some kind of HTTPS 
VirtualHosting. mod_ifenv seems to be the answer to my problems but it only 
compiles for Apache 1.3.x branch. I tried to "port" it to Apache2 but I faced 
problems that are above my knowledge and I can't figure out what's really 
happening. Furthermore, I don't have any kind of Apache dev experience and 
this does not help at all.

If some good developper here could make the port, it would be really nice and 
I think that such a module would gain a lot of popularity if it does work as 
expected. Considering the size of the existing Apache 1.3 module, it 
shouldn't be a real problem for an experienced Apache module dev to make the 
port to Apache 2.x

Here is my idea of a poor's man HTTPS virtual hosting.

Working part :

UseCanonicalName off

RewriteEngine On

RewriteCond %{HTTP_HOST} ^webmail.domain.tld$
RewriteRule ^/(.*) http://webmail.internal.tld/$1 [P]

RewriteCond %{HTTP_HOST} ^admin.domain.tld$
RewriteRule ^/(.*) http://admin.internal.tld/$1 [P]

RewriteCond %{HTTP_HOST} ^someservice.domain.tld$
RewriteRule ^/(.*) http://someservice.internal.tld/$1 [P]

and so on...

Missing part : (especially when the proxied site makes redirects and such)

<IfEnv HOSTNAME=webmail.domain.tld>
  ProxyPassReverse / http://webmail.internal.tld
</IfEnv>

<IfEnv HOSTNAME=admin.domain.tld>
  ProxyPassReverse / http://admin.internal.tld
</IfEnv>

<IfEnv HOSTNAME=someservice.domain.tld>
  ProxyPassReverse / http://someservice.internal.tld
</IfEnv>

and so on...

See my point?

Any volunteers?

-- 
SithLord

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to