redirect subdomain to internal location

chris.percol nginx-forum at
Thu May 26 14:47:38 MSD 2011

Nearly there!

Thanks to Appa I have got this far...

location ~ /(?<clientkey>[^/]*)/ {

What I didn't consider was that sometimes the result I am testing for
may not have a proceeding '/'.

How I update the rexex to allow for /mytest as well as /mytest?

Many thanks,


Posted at Nginx Forum:,200694,201110#msg-201110

More information about the nginx mailing list