redirect subdomain to internal location

chris.percol nginx-forum at nginx.us
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,

Chris

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,200694,201110#msg-201110




More information about the nginx mailing list