Welcome! Log In Create A New Profile


Re: Nginx reverse proxy issue -- Plz help

Francis Daly
January 29, 2017 01:34PM
On Sat, Jan 28, 2017 at 11:21:19PM -0500, blason wrote:

Hi there,

> I have nginx running as a reverse proxy and this is been running find for
> other 10 sites however this one site is causing me an issue.

What is different about the configuration of this site, compared to the
other 10? That might hint at where to look.

> http://abc.xyz.com/EasyPAY/view/LoginMain.aspx

My guess is that where you currently have

> location / {
> proxy_pass http://abc.xyz.com/EasyPAY/view/LoginMain.aspx;
> }

you possibly want instead

location / {
proxy_pass http://abc.xyz.com;

with maybe an extra

location = / {
return 301 /EasyPAY/view/LoginMain.aspx;

> xx.xx.xx.xx - - [29/Jan/2017:09:48:32 +0530] "GET /EasyPAY/view/System.js?11
> HTTP/1.1" 404 1245 "http://abc.xyz.com/" "Mozilla/5.0 (Windows NT 6.1;
> WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87
> Safari/537.36"

That looks like the browser asked for /EasyPAY/view/System.js?11, and
nginx said 404. If you check the upstream server logs for what request
got to it, you may see evidence of the problematic config.

nginx might be asking upstream for something like
/EasyPAY/view/LoginMain.aspxEasyPAY/view/System.js?11, which probably
causes it to send 404 to nginx.


Francis Daly francis@daoine.org
nginx mailing list
Subject Author Posted

Nginx reverse proxy issue -- Plz help

blason January 28, 2017 11:21PM

Re: Nginx reverse proxy issue -- Plz help

Francis Daly January 29, 2017 01:34PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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