Welcome! Log In Create A New Profile

Advanced

Re: Location served by all virtual servers

Edho Arief
January 05, 2015 01:52PM
On Tue, Jan 6, 2015 at 3:47 AM, Styopa Semenukha <semenukha@gmail.com> wrote:
> The hostname "domain1.com" is NOT matched by wildcard "*.domain1.com" (this
> only matches subdomains), so it gets served by the default virtual host. Since
> you don't have an explicit definiton of the default vhost, it's the first one
> (most likely, alphabetically). In your case, the default one is
> "*.domain2.com".
>
> Solution: add "domain1.com" and "domain2.com" server names to your config.

or use `.domain1.com` instead of `*.domain1.com` as documented in
http://nginx.org/r/server_name

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

Location served by all virtual servers

blu January 05, 2015 01:11PM

Re: Location served by all virtual servers

Styopa Semenukha January 05, 2015 01:48PM

Re: Location served by all virtual servers

Edho Arief January 05, 2015 01:52PM

Re: Location served by all virtual servers

blu January 06, 2015 08:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
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