Nginx reverse proxy - add another app

Hey,

I got an app running on port 8000 and want to access it with my Jitsi domain, so I have to add an nginx reverse proxy.

location = /manage {
    proxy_pass http://127.0.0.1:8000/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $http_host;
    tcp_nodelay on;
}

But when I access it then, it redirects me to the jitsi site. It knows, that there is sth behind because it replaces the paths behind the link to my application, but it accesses the Jitsi welcome page anyway.

Any suggestions? Do I have to add anything?

Thanks

Hi @Timo_W,

I had the same problem yesterday and solved it with a code similar to yours.
So check the following:

Make sure you adding these lines to the correct file:
/etc/nginx/sites-available/yourdomain.conf

or as an alternative (cause both files are syncronized):
/etc/nginx/sites-enabled/yourdomain.conf

Maybe you want to create a backup of the config file, so use the copy command in one of the mentioned directories:
cp yourdomain.conf yourdomain.conf.orig

Check that your code is located between:

# colibri (JVB) websockets for jvb1

and

location ~ ^/([^/?&:'"]+)$ { ... }

If you’re using some kind of URL mapping controller for POST / GET you have to change your code, like the example above in the .conf.