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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 =---- |