Thread: Virtual Host

  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Rep Power

    We have our intranet which consist of name server. I run a apache webserver in my machine. The url points to my machine ip and goes through apache. I want to run another domain or a virtual host in my apache with different document root say I have asked administrator to create the two domains and point to the same ip(my machine) I want to configure my apache how do i do that?

    Thanks in advance


  2. #2
  3. Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Apr 2000
    Rep Power
    I just did the same thing, and finally got
    it working.

    I ended up upgading to Apache 1.3.12.
    I just could not make it work with my old

    In your httpd.conf file you need to
    uncomment the "NameVirtualHost" section
    and put in the ip of your machine:


    Then add your Virtual Hosts (don't forget
    to uncomment them)

    # ServerAdmin
    # DocumentRoot /www/docs/
    # ServerName
    # ErrorLog ogs/

    You'll also need to make your old domain
    ( a virtual domain.

    For users on our intranet to reach our
    inside Virtual Hosts, they need to have
    host files on their PC's, and their web
    browsers have to be set up to not look on
    the "real" net for the domains. Perhaps
    all of this could be not an issue for you
    if you have a good SysAdmin to set up your
    company's internal network, but ours sucks
    big time, and is actually worse than no
    Admin at all.

IMN logo majestic logo threadwatch logo seochat tools logo