Rewrite regexp for subdomains

António P. P. Almeida appa at
Sun Oct 31 03:11:44 MSK 2010

On 30 Out 2010 19h08 WEST, nginx-forum at wrote:

> Hi i need to or anotherdummy
> send me to (another words * must
> redirect to but when i type it
> can't send to cause it's loop. Help me to realize
> this construction.

Create two server blocks. Put the www server name before the * and it
should work:


Exact names precede patterns or regex server names.

--- appa

More information about the nginx mailing list