#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    ch,tn,in
    Posts
    3
    Rep Power
    0
    hi there,
    just got apache(ver 1.3.12)running on my nt workstation. every thing's all right except for the virtual hosts. i've got 5 ips for my machine(200.100.50.75-79, thanks to my admin who's been very co-operative). my machines name is it11.

    when i type http://it11 in my browser, apache welcome message shows up. but when i type any of the ips (200.100.50.75-79) apache doesnt show up. what should i include in the <VirtualHost> tag.
    i tried this

    <VirtualHost 200.100.50.75>
    ServerRoot "c:/program files/apache group/apache/htdocs/"
    ServerName it11
    </virtuaHost>

    <VirtualHost 200.100.50.76>
    ServerRoot "c:/program files/apache group/apache/htdocs/"
    ServerName it11
    </virtuaHost>

    and so on....

    they do not seem to work.

    some body pls help me out....
    regards,
    p.thanga babu
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    You need to RTFM. Start here -> http://www.apache.org/docs/vhosts/index.html
    Specifically here -> http://www.apache.org/docs/vhosts/ip-based.html

    Also check out-> http://www.devshed.com/Talk/Forums/F...ML/000142.html

    >>ServerRoot "c:/program files/apache group/apache/htdocs/"

    Are you sure it's not DocumentRoot c:/program files/apache group/apache/htdocs ?

    You also need to specify a <Directory "c:/program files/apache group/apache/htdocs"> something like this..

    note: there is no trailing slash after "htdocs"

    [This message has been edited by freebsd (edited August 25, 2000).]
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    ch,tn,in
    Posts
    3
    Rep Power
    0
    thanks for your reply,
    i got my apache configured on my nt that supports virtual hosts. this is a great moment.

    but this is for all those poor heads that are struggling to get virtual hosts running on their nt. this is not given in any of the documents (atleast, as for as i could search). all i did was...

    Listen *:80
    BindAddress *
    Port 80

    <VirtualHost 200.100.50.75>
    ServerAdmin thanga_babu@200.100.50.75
    DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
    ServerName 200.100.50.75
    </VirtualHost>

    <VirtualHost 200.100.50.76>
    ServerAdmin thanga_babu@200.100.50.76
    DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
    ServerName 200.100.50.76
    </VirtualHost>

    and there i got my apache supporting vh.

    thanks for your help.

    regards,
    p.thanga babu

    [This message has been edited by thanga_babu (edited August 28, 2000).]
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    You need to point your DocumentRoot to different folder, otherwise, it defeats the purpose of using vhost.

    >>ServerAdmin thanga_babu@200.100.50.75

    Email host can't be IP address. Do you have a domain at all?
    Are you able to ping all 5 IPs from your nt box?

    >>this is not given in any of the documents (atleast, as for as i could search). all i did was...

    Have you read http://www.apache.org/docs/vhosts/ip-based.html ?

    I suggest you to get ONE vhost to work at a time.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    ch,tn,in
    Posts
    3
    Rep Power
    0
    sure, thanks. i understand the use of vhosts. but that was only a test & it worked fine. i am now able to simulate my corp's webserver.

    regards,
    p.thanga babu

IMN logo majestic logo threadwatch logo seochat tools logo