Hello,

Is there a simplier way to force "http" to "https" redirection at Pound level, 
without forwarding any request to the backend ?   Following configuration does 
the job, but in the ListenHTTP section it requires as many services as virtual 
hosts :

--------------------------------------------------------------------------------

ListenHTTPS
     [...]
     Service
           HeadRequire "Host: (host1|host2|host3|...).domain.tld"
           BackEnd
                Address 10.11.12.13
                Port 80
           End
     End
     [...]
End

ListenHTTP
     [...]
     Service
           HeadRequire "Host: host1.domain.tld"
           Redirect "https://host1.domain.tld";
     End

     Service
           HeadRequire "Host: host2.domain.tld"
           Redirect "https://host2.domain.tld";
     End

     Service
           HeadRequire "Host: host3.domain.tld"
           Redirect "https://host3.domain.tld";
     End
     [...]
End
--------------------------------------------------------------------------------

I was looking (dreaming ...) for some all-in-one shortcut in the ListenHTTP 
section, that would simply preserve all URL after the protocol :

--------------------------------------------------------------------------------
           HeadRequire "Host: .*.domain.tld"
           Redirect "https:"
--------------------------------------------------------------------------------

Maybe I missed something in the doc ? Thanks for any clue ...

Regards
--JGD

Reply via email to