david_1234
Posts: 328
Joined: Mon Jan 01, 2018 2:14 pm

nginx setting for reverse proxy

Tue May 26, 2020 11:15 am

Hello ,
I want to create a reverse proxy using nginx in my home netwrok
so when it will redirect me to my home sensors
but I can't seem to find how to do it
I'm using the default setting file

when I add this :

Code: Select all

location /MyFrontPgae.html/{
proxy_pass http:172.16.254.120/
}
it won't enter the MyFrontPgae.html but it redirect me to the device - which is good beacuse it mean that the reverse proxy is working...
(but only from the default index nginx page)

In my MyFrontPgae.html
there is only simple links to my devices

Code: Select all


<body>
<a href = "http://172.16.254.120/"> room1 <a>
<a href = "http://172.16.254.110/"> room2 <a>
<a href = "http://172.16.254.130/"> room3 <a>

what am I doing wrong ? and missing?

Thanks,

Return to “Networking and servers”