António P. P. Almeida
October 30, 2010 08:20PM
On 30 Out 2010 19h08 WEST, nginx-forum@nginx.us wrote:

> Hi i need to blabla.example.org or dummy.example.org anotherdummy
> send me to www.example.org (another words *.example.org must
> redirect to www.example.org) but when i type www.example.org it
> can't send to www.example.org 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:

See http://nginx.org/en/docs/http/server_names.html

Exact names precede patterns or regex server names.

--- appa


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewrite regexp for subdomains

shitit October 30, 2010 02:08PM

Re: Rewrite regexp for subdomains

António P. P. Almeida October 30, 2010 08:20PM

Re: Rewrite regexp for subdomains

shitit October 30, 2010 11:48PM

Re: Rewrite regexp for subdomains

António P. P. Almeida October 31, 2010 03:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready