Apache Server configuration support - Virtual Hosts?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2006 > Virtual Hosts?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Virtual Hosts?
Ted Appleberry

2006-08-23, 1:31 am

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!




dvrys

2006-08-23, 7:42 am


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

dvrys

2006-08-23, 7:42 am


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

Mark Taylor

2006-08-24, 7:30 pm

"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 webservertalk.com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.webservertalk.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com