I am trying to find out if it is possible to to use my browser to directly access virtual websites which are running on my network. I have a business grade broadband service delivered by ADSL, and my ISP has allocated me a fixed IP address. I have a couple of web sites running on Ubuntu Server 14.04 with Apache 2.4.7, although I don’t think the OS or webserver version is relevant to this problem. The “A” records have been set up correctly and at the moment the web sites work fine when viewed from the “outside world”, but I am unable to view them from a browser on a machine on the same network. The “solution” I use at the moment is to set up my mobile phone as a wireless hotsopt, and then connect my laptop to it. I can then use the laptop browser to view the sites by sending http requests via the 3g phone network to the WAN side of my router. Is there some way that I can get my browser (any browser) to send some kind of request to the server which will fool it in to serving up the pages from these virtual sites ? At the moment, if I try to browse to one of these sites, the external DNS appears to return the correct external IP address and I am then presented with the admin page for the router. Everything else that I try simply returns the default server page from /var/www/html
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!