I have the following setup:
- NGINX setup as a reverse proxy on Raspberry Pi (its sole purpose)
- -reverse proxy working great for other IPs on the LAN as well as several ports to services on a single Windows desktop
I have an issue with just 1 LAN device I cannot get to reverse proxy. It is a remote IP Power Switch (3GStore)
The DNS host entry within the IP Power Switch is "Outlet" so therefore within the LAN navigating to http://Outlet brings up the interface and if you instead type in the IP and hit enter the same page loads and the address bar populates with the local IP address 192.168.0.xxx/index.asp
thinking the port the IP Power Switch might have been the issue since it is also on port 80, I changed it to 9080 instead
this is the block I have within the config file I created within NGINX (that seems to work for the rest of the my reverse proxied devices/services but IS NOT working for this IP Power Switch)
server {
listen 80;
server_name mydomaincom;
location /powerswitch/ {
proxy_pass http://192.168.0.xxx:9080/;
include /etc/nginx/proxy_params;
}
}
Navigating to mydomaincom/powerswitch results in an NGINX 404 Not Found Error
Any suggestions would be greatly appreciated!