Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

Vhost -Read everything else ..still stuck- Solved
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Hosting
View previous topic :: View next topic  
Author Message
hmm



Joined: 31 May 2006
Posts: 5

Posted: Wed May 31, 2006 1:05 pm    Post subject: Vhost -Read everything else ..still stuck- Solved  

Hi,
I have read almost everything on this site and some others on vhost. Its all the same thing, tried it with *, *;*0 dmain.com:80 etcs
nothing changed.

Problem is that whatever vhost I try to connect to it leads me to localhost directory.

heres the httpd.conf
ServerName localhost:80
DocumentRoot "L:/apache2triad/htdocs"

NameVirtualHost *


<VirtualHost localhost:80>
#<VirtualHost 192.168.2.5>
ServerName localhost
ServerAdmin webmaster@localhost
DocumentRoot L:/apache2triad/htdocs
ErrorLog logs/error.log
CustomLog logs/access.log common

#display php errors
php_value register_globals 0
php_value error_reporting 2047
php_value display_errors 1
</VirtualHost>

<VirtualHost *:80>
#<VirtualHost 192.168.2.5>
ServerName www.domain1.com
ServerAlias domain1.com
ServerAdmin webmaster@domain1.com
DocumentRoot L:/apache2triad/htdocs/www/domain1
ErrorLog logs/domain1-error.log
CustomLog logs/domain1-access.log common

#Remove PHP info in headers
# php_value expose_php 0
</VirtualHost>

<VirtualHost *:80>
#<VirtualHost 192.168.2.5>
ServerName www.domain2.com
ServerAlias domain2.com
ServerAdmin webmaster@domain2.com
# DocumentRoot L:/apache2triad/htdocs/www/domain2
DocumentRoot /www/domain2
ErrorLog logs/domain2-error.log
CustomLog logs/domain2-access.log common

#Remove PHP info in headers
# php_value expose_php 0
</VirtualHost>

<VirtualHost *:80>
#<VirtualHost 192.168.2.5>
ServerName www.domain3.com
ServerAlias domain3.com
ServerAdmin webmaster@domain3.com
DocumentRoot L:/apache2triad/htdocs/www/domain3
ErrorLog logs/domain3-error.log
CustomLog logs/domain3-access.log common

#Remove PHP info in headers
#php_value expose_php 0
</VirtualHost>

P.S : domain 2 docroot is different coz I was trying to see what difference the changes would make .. sadly no change

Thanks for your help.

[SOLVED]
I needed to add the documentindex tag
i thought that the web browser would get index.html automatically if it existed but apparently not
..
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Hosting
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group