Nginx reverse proxy ,client registration gives 404 not found issue


Here are all configurations.

Windows 10 64 bit CMS installation with docker desktop
Ports are open inbound tcp 80,443,9505 on the windows firewall

A subdomain created in a plesk server and generated ssl with lets encrypt,
Subdomain uses nginx server
proxy mode on and used directives are down below.

location ~ ^/.* {
proxy_pass http://ipadressofwindows64bit;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 4G;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_set_header X-Forwarded-Proto http;
proxy_set_header X-Nginx-Proxy true;
proxy_http_version 1.1;

proxy_redirect off;

I can connect to CMS by using subdomain over ssl it works perfect.
Bu if i want to add a new player and use subdomain as a cms url i get 404 not found error.
if i directly use the ip adress of the cms it connects and i can register a new device.

Can you give an advice please how can i resolve the issue.
Kind regards.

proxy_set_header X-Forwarded-Proto http;

is telling Xibo the connection is not secure. You should be passing through the connection protocol to Xibo.

proxy_set_header X-Forwarded-Proto $scheme;

You have it right, and then you override it. Not sure why?

location / should be all you need. You don’t need to do a regex match there.

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