Nginx reverse proxy issue -- Plz help

Francis Daly francis at
Sun Jan 29 18:32:46 UTC 2017

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.


My guess is that where you currently have

> location / {
>         proxy_pass;
>         }

you possibly want instead

  location / {

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 "" "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 at

More information about the nginx mailing list