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.
Best Answer
Please check your domain name is correctly pointed to the server.
use dig command to check your dns record.
dig a A.public.org