0
I have the following setup:
- public, dynamic IP from my ISP, dynamical DNS let's call it public.org
- Reverse-proxy (nginx,ubuntu 14.04)
- Webservers (nginx,ubuntu 14.04) A,B,C running webapps within my home network, let's call it private.home
My goal is to reach the webservers A.private.home, B.private.home,... from the internet via the reverse-proxy as A.public.org
For server A I have set up the following lines on the reverse proxy:
server{
listen 80;
server_name A.public.org;
location /{
proxy_pass http://A.private.home;
}
}
if I then navigate to http://A.public.org
from an outside device, I get a 404, saying that A.private.home
could (obviously) not be resolved.
Help would be greatly appreciated.
Looks good.
check your nginx access.log and error.log to see if it shows any entries when you go to your site from outside device. – None – 2015-03-17T10:02:09.447
Hi, access log shows entries correctly
somepublicip --[17/Mar/2015:11:12:07 +0100] "GET / HTTP/1.1" 301 193 "-" "Mozilla/5.0 (iPad; CPU OS 8_1_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) CriOS/41.0.2272.56 Mobile/12B466 Safari/600.1.4"
– None – 2015-03-17T10:14:26.580can you dig A.private.home from proxy server. If you can try telneting to port 80 of your app servers from proxy server. – None – 2015-03-17T10:23:18.140
both works well. However I should point out, that
http://A.private.home
automatically redirects tohttps://A.private.home
to protect the user's credentials. (http on the proxy is also just a POC and I will move on to https, as soon as I get things to work properly) – None – 2015-03-17T10:36:43.563