Virtual Hosts?

This is a discussion on Virtual Hosts? within the Apache Web Server forums, part of the Web Server and Related Forums category; I am a recent convert from IIS and was quite savvy with host headers. For the life of me I ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2006
Ted Appleberry
 
Posts: n/a
Default Virtual Hosts?

I am a recent convert from IIS and was quite savvy with host headers. For
the life of me I am failing using Virtual Hosts.. If the site name is
www.foobar.com and it's located in the d:\www\foobar folder what would the
entry look like in the http.conf file??

Thanks!




  #2 (permalink)  
Old 08-23-2006
dvrys
 
Posts: n/a
Default Re: Virtual Hosts?


Ted Appleberry wrote:
> I am a recent convert from IIS and was quite savvy with host headers. For
> the life of me I am failing using Virtual Hosts.. If the site name is
> www.foobar.com and it's located in the d:\www\foobar folder what would the
> entry look like in the http.conf file??
>
> Thanks!


Maybe this will help.
http://www.apacheweek.com/features/vhost

  #3 (permalink)  
Old 08-23-2006
dvrys
 
Posts: n/a
Default Re: Virtual Hosts?


Ted Appleberry wrote:
> I am a recent convert from IIS and was quite savvy with host headers. For
> the life of me I am failing using Virtual Hosts.. If the site name is
> www.foobar.com and it's located in the d:\www\foobar folder what would the
> entry look like in the http.conf file??
>
> Thanks!


Maybe this will help.
http://www.apacheweek.com/features/vhost

  #4 (permalink)  
Old 08-24-2006
Mark Taylor
 
Posts: n/a
Default Re: Virtual Hosts?

"Ted Appleberry" <ted@ted.com> wrote in
news:44ebe8de$0$6143$39cecf19@news.twtelecom.net:

> I am a recent convert from IIS and was quite savvy with host headers.
> For the life of me I am failing using Virtual Hosts.. If the site name
> is www.foobar.com and it's located in the d:\www\foobar folder what
> would the entry look like in the http.conf file??
>
> Thanks!
>
>
>
>
>


At bare minimum?

<VirtualHost ip_address:port>
ServerName foobar.com
ServerAlias www.foobar.com
DocumentRoot "d:\www\foobar"
</VirtualHost>


But remember, when you want to use virtual hosts the main host is no longer
used. If it is then your virtual host will not work. The conf file is read
from the bottom up. If your main hosts config is still there then you
virtual hosts will not work.

That is, IIRC

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0