On Tue, Jun 23, 2015 at 10:25:36AM -0400, trondd wrote:
> On Sun, June 21, 2015 10:01 am, Reyk Floeter wrote:
> >>
> >>         location match '^/page/(%d+)' {
> >>                 block return 302 "/index.cgi?page=%1'
> >>         }
> >>
> 
> So I was playing with the below config, then figured out it's not coded to
> capture on 'server match'.  I want to redirect anything I get to use https
> and add the FQDN without having to care which domain they are trying to
> get to.
> 
> A simplified config:
> 
> server match '^(.*)$' {
>         listen on em0 port 80
>         block return 301 'https://%1.my.fqdn.com/'
> }
> 
> Is there a way to do it?  Any reason to not capture on 'server match'?
> 

It is just not done yet.  As I said, we're improving the interface.
But this doesn't affect the initial implementation itself. 

Reyk

Reply via email to