The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> Apache Development
|
virtual host on windows nt
Discuss virtual host on windows nt in the Apache Development forum on Dev Shed. virtual host on windows nt Apache Development forum discussing HTTP Server general topics, configuration, and modules. Apache is an open source web server that runs on multiple platforms.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

August 25th, 2000, 07:18 AM
|
|
Junior Member
|
|
Join Date: Aug 2000
Location: ch,tn,in
Posts: 3
Time spent in forums: < 1 sec
Reputation 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
|

August 25th, 2000, 01:17 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
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/Forum15/HTML/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).]
|

August 28th, 2000, 08:14 AM
|
|
Junior Member
|
|
Join Date: Aug 2000
Location: ch,tn,in
Posts: 3
Time spent in forums: < 1 sec
Reputation 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).]
|

August 28th, 2000, 04:22 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
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.
|

August 28th, 2000, 11:18 PM
|
|
Junior Member
|
|
Join Date: Aug 2000
Location: ch,tn,in
Posts: 3
Time spent in forums: < 1 sec
Reputation 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
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|