Wildcard subdomains (any change in nginx?)

I was using wildcard for including all subdomains for a server_name as

server_name domain.com;

I just installed nginx 1.2.3, but this configuration no longer works and
subdomains lead to nginx 404 page. Since I followed a standard procedure
of
installation via apt-get, I suspect something has been changed in new
versions of nginx.

Now, I can only use wildcard for subdomains with

server_name domain.com *.domain.com;

Did I miss something or it is the nginx policy in new versions and
forthcoming ones to discard subdomains without *.domain.com ?

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

On Wednesday 12 September 2012 22:49:43 etrader wrote:

I was using wildcard for including all subdomains for a server_name as

server_name domain.com;

[…]

This has never included subdomains. Probably it worked for you just
because it
was the default server block. But after the update something has been
changed in
your configuration.

http://nginx.org/en/docs/http/server_names.html
http://nginx.org/r/server_name

wbr, Valentin V. Bartenev

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs