Welcome! Log In Create A New Profile

Advanced

Include additional files

Jörg Kastning
April 25, 2013 03:10AM
Hi.

I have some trouble cleaning up my /etc/nginx/nginx.conf. I have several
upstream and server blocks in this file and it becomes a mess. So I tried
to write each configuration in a seperate file saved in
/etc/nginx/conf.d/loki.conf for example and include them in nginx.conf.

I include the file with the following entry in nginx.conf:
include /etc/nginx/conf.d/loki.conf;

But when reloading/restarting nginx I get the following error:
[emerg] 15941#0: duplicate upstream "loadbalancer" in
/etc/nginx/conf.d/loki.conf:1

I looked around in the Wiki but find no hint.

How can I store my configruations in seperate files and include them?

Greetz

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

Include additional files

Jörg Kastning April 25, 2013 03:10AM

Re: Include additional files

motto April 25, 2013 03:15AM

Re: Include additional files

Jörg Kastning April 26, 2013 01:48AM

Re: Include additional files

mex April 26, 2013 02:05AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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