redirect subdomain to internal location

António P. P. Almeida appa at perusio.net
Wed May 25 19:16:28 MSD 2011


On 25 Mai 2011 16h07 WEST, appa at perusio.net wrote:

Oops.

> If I'm understanding correctly what you want to do, you'll need a
> location with a regex that captures that URI component. E.g.:
>
> location /(?<clientkey>[^/]*)/ {
> (...)

 set_unescape_uri $key $clientkey;
                       ^^^^^^^^^^
                       Now it's correct.                       
> (...)
> }

--- appa




More information about the nginx mailing list