New requests are not updated in nginx

Hello,
I have installed nginx as proxy server for our project purposes.
We
kept our application in our private lan and made that private url (say
http://a.b.c.d:1234/appName) an entry in nginx config file
(/etc/nginx/stes-available/web-apps ). Then restarted the nginx service
to
take effect new changes. nginx is running in 80 port and accessible from
internet. In this way nginx had been run for last 4 months. But,
suddenly it
stopped updating itself. I mean whatever new url I do add in the config
file, nginx is not redirecting any request to the real application.

I have tracked the ports using tcpdump. nginx receiving the request,
but it
is not forwarding the request towards real server. I have checked the
access
log file and the error.log file, but no error is logged there.

Please provide me any suggesion.

    Thanks in advance.

Posted at Nginx Forum:

On 6 Jul 2013 18:11, “prasunb” [email protected] wrote:

Hello,
I have installed nginx as proxy server for our project purposes.
We
kept our application in our private lan and made that private url (say
http://a.b.c.d:1234/appName) an entry in nginx config file
(/etc/nginx/stes-available/web-apps ). Then restarted the nginx service to
take effect new changes. nginx is running in 80 port and accessible from
internet. In this way nginx had been run for last 4 months. But, suddenly
it
stopped updating itself. I mean whatever new url I do add in the config
file, nginx is not redirecting any request to the real application.

    I have tracked the ports using tcpdump. nginx receiving the

request, but it

is not forwarding the request towards real server. I have checked the
access
log file and the error.log file, but no error is logged there.

Check that your restart script is REALLY restarting the process. Check
the
PID age.

I’ve seen this before on certain OSes where a restart with configuration
errors present resulted in silent failure and no restart.

HTH,
Jonathan

I have checked the PID status. Its PID is changing with every restart.
Even
though I am getting two warning messages while restarting, but don’t
think
they are the culprits.

warning messages…
Starting nginx: nginx: [warn] conflicting server name “127.0.0.1” on
0.0.0.0:80, ignored
nginx: [warn] conflicting server name “127.0.0.1” on 0.0.0.0:80, ignored
nginx.

Posted at Nginx Forum: