(private) HKS wrote:
On Mon, Mar 2, 2009 at 11:48 AM, Sebastiaan van Erk <[email protected]> wrote:
Hi,

I'm trying to achieve the equivalent of:

# Redirect to https
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

I'm using pound to terminate a bunch of https sites (I have a wildcard
cert). I know I can constantly add a new line for each new site, but I was
wondering if I could reproduce the above hostname independent method,
perhaps using wildcard captures or something; ideally something like this:

 Service
   HeadRequire "^Host:\s(.*)\.sebster\.com"
   Redirect "https://$1.sebster.com";
 End

Regards,
Sebastiaan



I asked an almost identical question on 2009-02-20, and have yet to
receive a reply. I'm guessing this isn't possible.
http://www.apsis.ch/pound/pound_list/archive/2009/2009-02/1235167438000#1235167438000

Not currently possible AFAIK. OTOH, add a custom header in your https service (such as "X-Forwarded-Proto: https") and then do the check for that in apache, and you can use a mod_rewrite snippit similar to whats above.

--
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/

--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to