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


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

Reply via email to