Virtual host / document root

This is a discussion on Virtual host / document root within the Apache Web Server forums, part of the Web Server and Related Forums category; I am attempting to set up virtual hosts in apache2triad on win xp for local development but when I point ...


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 07-28-2004
jml
 
Posts: n/a
Default Virtual host / document root

I am attempting to set up virtual hosts in apache2triad on win xp for
local development but when I
point my browser to my-domain.com I never go to my index.htm file but to
the htdocs dir.
Here is the httpd set up, could anyone tell me what's wrong with it?
Thanks

ServerRoot "C:/apache2triad"

ServerName localhost:80
ServerAdmin admin@localhost
DocumentRoot "C:/apache2triad/htdocs"

NameVirtualHost *

<VirtualHost *>
ServerName my-domain.com
ServerAdmin webmaster@my-domain.com
DocumentRoot "c:/apache2triad/htdocs/www/my-domain"
ErrorLog "logs/my-domain.com-error_log"
CustomLog logs/my-domain.com-access_log common
</VirtualHost>

I've also taken care of the hosts file with:
127.0.0.1 localhost
127.0.0.1 my-domain.com
  #2 (permalink)  
Old 08-01-2004
davide@fogg.onlyforfun.net
 
Posts: n/a
Default Re: Virtual host / document root

On 2004-07-28, jml <jml@levillagevertical.com> wrote:
> point my browser to my-domain.com I never go to my index.htm file but to
> the htdocs dir.


By default the document that Apache try to serve is index.html (note
the last 'l').

Davide

--
| Now and then an innocent person is sent to the legislature.
|
|
|
 


Thread Tools
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

vB 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 01:47 AM.


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