Welcome! Log In Create A New Profile

Advanced

Re: Set default nginx-conf in sites-enabled?

Francis Daly
August 02, 2013 08:56AM
On Fri, Aug 02, 2013 at 08:38:28AM -0400, lennart wrote:

Hi there,

> I've several config-files in sites-enabled, all working fine. However, if a
> domain (foobar2.com) not is mentioned in a config, NGINX takes the conf-file
> of foobar1.com. How can i overrule this and make some sort of catch-all?

http://nginx.org/en/docs/http/request_processing.html

If a server name is not mentioned in any relevant server block, nginx
chooses the default server for this ip:port.

Make your "catch-all" be the default for this "listen" ip:port combination.

> With the line in the default-config i get an error 500:

What does the error log say?

f
--
Francis Daly francis@daoine.org

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

Set default nginx-conf in sites-enabled?

lennart August 02, 2013 08:38AM

Re: Set default nginx-conf in sites-enabled?

Francis Daly August 02, 2013 08:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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