Hello everybody!

Currently I forward all the http requests to htts as below:

ListenHTTP

    Address my_ip_address

    Port 80

  Service

      HeadRequire "Host:.*sub1.mydomain.org.*"

      Redirect "https://sub1.mydomain.org";

  End

  Service

      HeadRequire "Host:.*mydomain.org.*"

      Redirect "https://www.mydomain.org";

  End

  Service

      HeadRequire "Host:.*sub1.anotherdomain.com.*"

      Redirect "https://sub1.anotherdomain.com";

  End

  etc...

End

however, with the number of websites growing it is not convenient to manage
simple recirections like that.

I wonder is there any way in Pound to use HTTP_HOST instead? For example,
we can do this in Apache:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Is there any way in Pound to write one rule for all the domains that would
redirect all requests to HTTP over to HTTPS?

I hope I could explain what I want.

Thanks in advance!

Reply via email to