Host Multiple Web Sites with One Physical Server – Virtual Hosting with Apache


In this video, I show you how to use a single Ubuntu server to host multiple web sites through one instance of Apache with Virtual Hosting.
yUWtrYlM_9c

25 Comments


  1. @eliasbaez69 I’ve posted a tutorial for Apache on Windows, but haven’t
    tackled virtual hosting on Windows just yet. I’ll be researching that today
    and may get a video done today. As a side note, since all the utilities are
    free, I would suggest setting up VirtualBox with a bridged network adapter
    on a Windows machine and installing Ubuntu server to do this task.

    Reply

  2. Fantastic and easy to follow tutorial. Before I landed on this video, I
    spent a couple of hours working the the actual Apache2 documentation, which
    was way over-complicated. Thanks again!

    Reply

  3. Thank you for sharing this with us, this is a really great tutorial. I have
    one question. After modifying the default script for the virtualhost I can
    no longer get phpmyadmin to work. I have Ubuntu Server 10 running &
    phpmyadmin was working before I updated this, using a real domain what
    script do I need add to get it to point back to it?

    Reply

  4. this is internally in a network…is there a way to host multiple website
    externallly so that other people outside the network can acess the websites
    with the same port 80 at the same external ip adress

    Reply

  5. Excellent Video, very helpful. Thanks!!

    Reply

  6. Thank you for posting this video. I started pulling out my hair because I
    was just not getting everything right.

    Reply

  7. If you open the conf file with the virtualhosts with nano, use Ctrl+W and
    then you can search for the specific domain. Also, make sure that the
    folder containing the html files and the files themselves have correct
    permissions. The HTML files should be 644 and the directory….not sure,
    I’d go with 764 on that I guess, perhaps someone else will comment and
    prove me wrong on that for security purposes.

    Reply

  8. Let’s say your external Ip is 121 .456. 12.56 and you already forward port
    80. This means others from different network can access your server with
    the IP. If you set up A records and point them to your ip let’s say
    ‘domainnamea .co m’ point to your IP which is ‘121 .456 .12. 56 ‘. They
    will access the main content but how if i want domainnameb .co m access the
    virtual host that i created? Any idea?

    Reply

  9. This was very helpful. Thank you very much!

    Reply

  10. you are an IT guy

    . And what about girls?

    Reply

  11. The best tutorial for that topic i will mean THANK YOU

    Reply

  12. Excellent tutorial on a great subject!

    Reply

  13. Thank you so much,this helped me alot

    Reply

  14. how to access it from the internet ?

    Reply

  15. I saw some video using a2ensite , but you haven’t used it ?, still working?
    Please reply
    Thank for the video.

    Reply

  16. This really helped me! Nice and simple. Running two websites on my
    raspberrypi now!
    Thanks!

    Reply

  17. After doing all these things ,
    When I was going to 127.0.0.1 , it always going to sitea index.html , why

    Reply

  18. Great video bud!

    Reply

  19. thanks!
    but i got a question:
    i got a domain name as the main site, and i used this tutorial to make a
    subdomain go to another folder with another website.
    how can i redirect users from a non existing subdomain to the main site?

    Reply

  20. stillt connect mmy pc to a sever HP 20 windows 8.1 pillivion wireless
    ….?

    Reply

  21. how to integrate apache2 and tomcat ? any one please

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *