Apache VirtualHosts on Internal Network (No DNS)
It’s quite common for web engineers to develop applications on either a local machine, or a server running on the local network. In many situations one does not have the luxury of a domain name service to base everything off of, and it becomes a matter of using the IP address or an internal host file.
For example, I have an internal server that we do most of our development on and we’ve typically placed everything in the default htdocs directory. That tends to be a problem if we’re working on a pre-existing application that was designed to work only from the root level.
In the following steps I’ll describe setting up a virtual host and how to trick your computer into simulating the domain service.
(more…)