My Create Virtual Host Doesn't Work

October 23, 2014 1.6k views

I have followed the detailed instructions on How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS
When I go to I get - Example Domain

This domain is established to be used for illustrative examples in documents. You may use this domain in examples without prior coordination or asking for permission.

When I go to - a website comes up for

I can't figure out why the html PAGES ON Apache2 will not show. I have created the HTML pages.

I am running Ubuntu 14.04 LTS and Apache2 Server

1 comment
  • 1.Make sure you include the file types (index.htm,index.html) with in the vhost entry.

    1. Make sure that the apache user has correct permissions on your www directory
2 Answers

Hi! and should be replaced by the domain names that you actaully own and use. In the tutorial "How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS," everything highlighted in red is meant to be replaced.

by Justin Ellingwood
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 14.04 VPS.
  • Thanks asb but I do not own any domain names. I just wanted to test the virtual host for future domain names. Is there a way to test the virtual host? I'm just setting up my home web server.

  • If you're just doing it on a home webserver, then instead of setting up multiple VirtualHosts just use one and install your sites into subfolders. Then you can access them via the server's IP address like http://ip.address/wiki, http://ip.address/random_app

Thanks everyone for helping. I went over all my files to make everything was spelled correct and in the right file. I finally got it to work using URL

Have another answer? Share your knowledge.