Sunday, 29 September 2013

Wildcard subdomain rewrites in nginx

Wildcard subdomain rewrites in nginx

I'm trying to get nginx to rewrite
http://subdomain.example.com
to
http://example.com?username=subdomain
And not having any luck. Its important that the user sees the former URl
in their browser but that nginx interprets it as the latter URL.
Thanks in advance for any help.

No comments:

Post a Comment