I've seen some discussion of this before, but couldn't find a resolution; I'll 
apologize in advance if this is duplicated somewhere in the archives.

We've been using HAProxy (very happily, I might add) for a while to load 
balance between appserver instances on physical hardware.  We're also currently 
using Apache purely to issue 302 redirects when HTTP traffic comes in 
(everything we do - other than the redirects - is HTTPS).  It seems as if we 
should be able to use HAProxy for these since the connections are going through 
it anyway.

Our challenge is that our servers accept connections on a wildcard hostname ( 
*.domain.com ) and we need to maintain the host identity during the 
redirection, so hardcoding the host portion won't work in our case.  Would 
somebody be able to help me out with the correct syntax, if its even possible?  
Thanks!

FWIW, the equiv. Apache redirect rule we're trying to eliminate is:

################################################################################
# SSL Redirect from external port 80
################################################################################

<VirtualHost 172.25.200.70:80>
    RewriteEngine On
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

Richard Stanford
CTO, KIMBIA
512-474-4447

Reply via email to