Dear all,
I'm new to the world of nginx and not skilled at all.
I managed to make it run on my server (.0.200) with the current configuration:
server {
listen *:9999;
server_name 192.168.0.200
location / { root /var/www/; } # simple index.html
location /headphones { proxy_pass http://192.168.0.200:8181/headphones; }
} # a proxy redirect of a service running my server and it is working
I've struggled to configure another proxy redirect without success.
1st: on the same network I have a phone (http://192.168.0.100/login.html)
I've tried with
location /phone/ { proxy_pass http://192.168.0.100:80/; }
but when I browse http://192.168.0.200:9999/phone/ I'm redirected to http://192.168.0.100/login.html while I would expect http://192.168.0.200:9999/phone/login.html
Someone can suggest me how to proceed
thanks for your patience.
kind regards
stef
I'm new to the world of nginx and not skilled at all.
I managed to make it run on my server (.0.200) with the current configuration:
server {
listen *:9999;
server_name 192.168.0.200
location / { root /var/www/; } # simple index.html
location /headphones { proxy_pass http://192.168.0.200:8181/headphones; }
} # a proxy redirect of a service running my server and it is working
I've struggled to configure another proxy redirect without success.
1st: on the same network I have a phone (http://192.168.0.100/login.html)
I've tried with
location /phone/ { proxy_pass http://192.168.0.100:80/; }
but when I browse http://192.168.0.200:9999/phone/ I'm redirected to http://192.168.0.100/login.html while I would expect http://192.168.0.200:9999/phone/login.html
Someone can suggest me how to proceed
thanks for your patience.
kind regards
stef