Welcome! Log In Create A New Profile

Advanced

nginx keeps redirecting to welcome page

Posted by truffle 
nginx keeps redirecting to welcome page
October 25, 2015 05:45PM
I am using the following config:

server {
listen 80;
server_name 192.168.1.10;
location /shutter {
proxy_pass http://192.168.1.10:8989;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

The application I am using is called shutter lite: http://www.den4b.com/?x=products&product=shutter

When I enter

http://192.168.1.10:8989

it takes me to 'login' screen and then the web interface of the application, so that works.

But, When I enter

http://192.168.1.10/shutter

I get to the 'login' screen for the application. As soon as I login, it takes me to the nginx welcome screen instead of the web interface of the application.

The above config works for other applications, it is only the shutter application that gives me this problem.

I am not sure where I am going wrong..

Any suggestions?
Re: nginx keeps redirecting to welcome page
October 25, 2015 07:03PM
Maybe the application needs to be told it is running on port 80 instead of 8989, or you need to add a directive location block for / (root) because you only have a /shutter location block and nothing below that.

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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