Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Virtual Host Problems
Google
Post new topic Reply to topic
Author Message
dave111
 
 


Joined: 04 May 2004
Posts: 6

PostPosted: Fri Apr 22, 2005 1:06 am Reply with quoteBack to top

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 Sad any ideas?
View user's profileSend private message
Slo
 
 


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

PostPosted: Fri Apr 22, 2005 2:17 am Reply with quoteBack to top

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...
View user's profileSend private messageMSN Messenger
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT