Nginx LXC Container - Reverse Proxy

I have installed several LXC containers with Proxmox including Sonarr of course.

Now I have installed a separate container with Nginx and already created certificates and reach the webserver from outside. But unfortunately the forwarding /sonarr does not work.

I took the sample configuration for Nginx directly from here.

I already added the extension /sonarr.

Structure is the following:
NGINX Container 192.168.178.50
Sonarr 192.168.178.41 and this IP I have added as well

My /etc/nginx/sites-enabled/sonarr.XXXXX.com configfile

location / {
proxy_pass http://192.168.178.41:8989
proxy_set_header X-Real IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

But it just doesn’t work. There is always an error message that sonarr not found.

Change the nginx config file to something like this:

location /sonarr {
proxy_pass http://192.168.178.41:8989/sonarr
proxy_set_header X-Real IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Also, set the base URL in Sonarr to /sonarr.

I did, but still he’s not forwarding it on sonar.

Could you post the entire config file? if you are using sonarr.yourdomain.com and sonarr is the only thing at http://192.168.178.41:8989, you would not need the subdomain. but you do need the correct listening lines in the config. Please post the full sonarr.xxxxx.com config.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.