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

Virtual Host Problems
Click here to go to the original topic

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



Joined: 04 May 2004
Posts: 6

Posted: Fri Apr 22, 2005 1:06 am    Post subject: Virtual Host Problems  

Trying to set up 2 sites with different domains on 1 IP.
I've read the manual on virtual host and setup my httpd.conf to look like this:

Code:
NameVirtualHost *

<VirtualHost 69.205.230.180>
    ServerAdmin contact@rareglitchgames.com
    DocumentRoot c:/apache2/htdocs/rareglitch
    ServerName www.rareglitch-games.com
    ServerAlias rareglitch-games.com
    ErrorLog c:/apache2/logs/www.rareglitch-games.com-error.log
    CustomLog c:/apache2/logs/www.rareglitch-games.com-access.log combined
</VirtualHost>
<VirtualHost 69.205.230.180>
    ServerAdmin contact@rareglitchgames.com
    DocumentRoot c:/apache2/htdocs/rareglitch2
    ServerName www.rareglitch.com
    ServerAlias rareglitch.com 
    ErrorLog c:/apache2/logs/www.rareglitch.com-error.log
    CustomLog c:/apache2/logs/www.rareglitch.com-access.log combined
</VirtualHost>

But neither domain will work when i have it set like this, and even http://localhost wont work either :( any ideas?
Back to top  
Slo



Joined: 22 Mar 2005
Posts: 42
Location: New Jersey USA

Posted: Fri Apr 22, 2005 2:17 am    Post subject:  

This is how I have it and it works fine...



Quote: #<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<VirtualHost *>
ServerAdmin admin@themoddepot.com
DocumentRoot D:/apache2triad/htdocs
ServerName themoddepot.com
ErrorLog logs/error.log
CustomLog logs/access.log common
</VirtualHost>

<VirtualHost *>
ServerAdmin george@imyourhandyman.biz
DocumentRoot D:/apache2triad/htdocs/imyourhandyman
ServerName imyourhandyman.biz
ErrorLog logs/imyourhandyman.biz-error.log
CustomLog logs/imyourhandyman.biz-access.log common
</VirtualHost>

<VirtualHost *>
ServerAdmin george@imyourhandyman.biz
DocumentRoot D:/apache2triad/htdocs/imyourhandyman
ServerName www.imyourhandyman.biz
ErrorLog logs/imyourhandyman.biz-error.log
CustomLog logs/imyourhandyman.biz-access.log common
</VirtualHost>


Slo...
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