Access site without domain name via IP address on server with multiple virtualhosts

December 18, 2016 13.3k views
Apache DNS Ubuntu

I have a single Digital Ocean droplet with 5 websites hosted on it via virtualhost. Everything works fine. Their domain names point to each one individually. Using Ubuntu 14.04 and Apache.

I want to add a sixth "test" site, without a domain name pointing to it. I want to use it to test out some WordPress stuff. The physical location of the home page to this site is:


Let's say my server's IP address is 555.555.555.555

What do I need to do to make this home page available to anyone on the internet as follows?


1 Answer

I've already answered similar question here (How do i set which apache virtual host will my ip go to).
Utilizing idea from linked answer, you can make test VHost as 'default' by placing it first.

Have another answer? Share your knowledge.