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