Welcome! Log In Create A New Profile

Advanced

Re: duplicated directive on reverse proxy

Francis Daly
June 12, 2012 01:14PM
On Tue, Jun 12, 2012 at 09:57:20AM -0400, oreaseca wrote:

Hi there,

> error_log /var/log/nginx/www.DOMAIN.gov.br-error.log;
> server {

Quite possibly, just swapping those two lines will make things do what
you want.

> root@proxy01:/etc/init.d# /etc/init.d/nginx start
> Starting nginx: [emerg]: "error_log" directive is duplicate in
> /etc/nginx/sites-enabled/www.DOMAIN.gov.br:1
> configuration file /etc/nginx/nginx.conf test failed

error_log only takes a single value at one level.

Your "include" is at http level, so that's where your error_log currently
is. As soon as you put a second error_log at http level, you'll see the
error message.

Put the error_log line at server level, and it should just Work.

f
--
Francis Daly francis@daoine.org

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

duplicated directive on reverse proxy

oreaseca June 12, 2012 09:57AM

Re: duplicated directive on reverse proxy

Francis Daly June 12, 2012 01:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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