Nginx recreating default configuration files

I’m not sure how or why this happened, but nginx recreating the default
configuration files in the conf.d directory. This caused it to attempt
to
bind to all interfaces on my server.

Is there a way to prevent this from happening in the future?

On Tue, 2012-03-13 at 10:45 -0400, Bai Shen wrote:

I’m not sure how or why this happened, but nginx recreating the
default configuration files in the conf.d directory. This caused it
to attempt to bind to all interfaces on my server.

Is there a way to prevent this from happening in the future?

Nginx doesn’t ever write configuration files. How did you install
Nginx? My first guess is that you are using a non-official repository
(i.e. a PPA) and they pushed a new configuration.

Regards,
Cliff

I did the install by adding the nginx repo to my RH box. Then doing yum
install nginx. I haven’t done an update, so I’m not sure how anyone
could
have pushed a new configuration.

On Tue, 2012-03-13 at 12:57 -0400, Bai Shen wrote:

I did the install by adding the nginx repo to my RH box. Then doing
yum install nginx. I haven’t done an update, so I’m not sure how
anyone could have pushed a new configuration.

My only guess then would be that somehow you reverted it yourself, or it
was somehow never changed in the first place. I know I’ve done similar
things (having the same file open in multiple editors, renaming a file
and forgetting to reopen the buffer in emacs, etc).

Regards,
Cliff

I’m not sure how that could have happened. I had renamed the files to
add
.orig to the end so nginx wouldn’t pick them up. When I looked in the
directory, there were two copies of the files. One with .orig and one
without.