|
|
| 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!
| |
|
|
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
| |
|
|
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 =----
|
|
|
|