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

Multiple Domains
Click here to go to the original topic

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



Joined: 13 Mar 2006
Posts: 9
Location: California, United States

Posted: Mon Mar 13, 2006 8:36 am    Post subject: Multiple Domains  

Hello everyone...
well, this might have already been posted somewhere but I did not find it. Anyways, I just wanted to ask if Apache2Triad supports multiple domains? If so...how could I do that?
Thanks!
Back to top  
dawg



Joined: 11 Apr 2004
Posts: 180

Posted: Mon Mar 13, 2006 9:16 pm    Post subject:  

yes --look for virtual host
Back to top  
Ads



Joined: 13 Mar 2006
Posts: 9
Location: California, United States

Posted: Tue Mar 14, 2006 8:37 am    Post subject: Okay  

Do I look for this in apache2triad?
Back to top  
Vlad Alexa Mancini



Joined: 07 Jul 2003
Posts: 1538

Posted: Tue Mar 14, 2006 11:37 am    Post subject:  

yes apache2triad\manual\vhosts\index.html
Back to top  
cigraphics



Joined: 21 Aug 2005
Posts: 147
Location: Romania, Pitesti

Posted: Tue Mar 14, 2006 1:52 pm    Post subject:  

or you can find it in the directory where the at2 is installed in the conf folder in httpd.conf then look for virtual hosts config and then write

NameVirtualHost yourip

<VirtualHost yourip>
ServerAdmin admin@domain.tld
DocumentRoot C:\apache2triad\htdocs\www.domain.tld
ServerName www.domain.tld
ServerAlias domain.tld
ErrorLog logs/domain.tld-error_log
CustomLog logs/domain.tld-access_log common
</VirtualHost>

<VirtualHost yourip>
ServerAdmin admin@domain.tld
DocumentRoot C:\apache2triad\htdocs\www.subdomain.domain.tld
ServerName www.subdomain.domain.tld
ServerAlias subdomain.domain.tld
ErrorLog logs/subdomain.domain.tld-error_log
CustomLog logs/subdomain.domain.tld-access_log common
</VirtualHost>
Back to top  
Ads



Joined: 13 Mar 2006
Posts: 9
Location: California, United States

Posted: Sun Mar 19, 2006 4:37 am    Post subject: Thanks!  

Thank you guys very much...I'll check that out.
Back to top  
Camac



Joined: 30 Jan 2006
Posts: 22
Location: Australia

Posted: Thu Apr 20, 2006 5:27 am    Post subject:  

or use my tutorial http://forum.diywebserver.com/index.php?topic=3986.0
Back to top  
Ravenwood



Joined: 25 Apr 2006
Posts: 1

Posted: Tue Apr 25, 2006 7:17 pm    Post subject: Multiple Domains Help Request  

Multiple Domains Help Request

Hello everyone,

I am tried everything you have suggested and I suspect something is missing in my method of madness.

Needed Info that I know

- Windows XP Pro SP2
- Apache2Triad 1.5.4
- 2 Domains/1 IP Address

Quote: Virtual Host settings[b]

# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
<VirtualHost localhost:80>
ServerAdmin admin@yoursite.com
DocumentRoot c:/apache2triad/htdocs
ServerName localhost
ErrorLog logs/localhost_error.log
CustomLog logs/localhost_access.log common
#
#display php errors
php_value register_globals 0
php_value error_reporting 2047
php_value display_errors 1
</VirtualHost>
#
<VirtualHost phoenixconceptuals.com:80>
ServerAdmin phoenixconceptuals@hotmail.com
DocumentRoot htdocs/phoenixconceptuals
ServerName www.phoenixconceptuals.com
ServerAlias phoenixconceptuals.com
DirectoryIndex index.html
ErrorLog logs/phoenixconceptuals.com-error_log
CustomLog logs/phoenixconceptuals.com-access_log common
</VirtualHost>
#
<VirtualHost castleravenwood.com:80>
ServerAdmin castleravenwood@hotmail.com
DocumentRoot htdocs/castleravenwood
ServerName www.castleravenwood.com
ServerAlias castleravenwood.com
DirectoryIndex index.html
ErrorLog logs/castleravenwood.com-error_log
CustomLog logs/castleravenwood.com-access_log common
</VirtualHost>
#
## Apache2Triad config starts here


When I go to either domain name, I get htdocs not the site folder. I have the .coms forwarded to my IP Address, but it only takes me to the default htdocs folder and not the site folder. The request for both domains is redirected by GoDaddy to my single IP address, but from there, only the htdocs folder.

Are there any other mod's or anything that need the # removed from the front of the line?
What do I need to do to make the virtual hosting work?


Ravenwood
Back to top  
dawg



Joined: 11 Apr 2004
Posts: 180

Posted: Tue Apr 25, 2006 11:58 pm    Post subject:  

Code: <VirtualHost phoenixconceptuals.com:80>
ServerAdmin phoenixconceptuals@hotmail.com
DocumentRoot htdocs/phoenixconceptuals
ServerName www.phoenixconceptuals.com
ServerAlias phoenixconceptuals.com
DirectoryIndex index.html
ErrorLog logs/phoenixconceptuals.com-error_log
CustomLog logs/phoenixconceptuals.com-access_log common
</VirtualHost>
#
<VirtualHost castleravenwood.com:80>
ServerAdmin castleravenwood@hotmail.com
DocumentRoot htdocs/castleravenwood
ServerName www.castleravenwood.com
ServerAlias castleravenwood.com
DirectoryIndex index.html
ErrorLog logs/castleravenwood.com-error_log
CustomLog logs/castleravenwood.com-access_log common
</VirtualHost>
#

Needs to be

Code: <VirtualHost phoenixconceptuals.com:80>
ServerAdmin phoenixconceptuals@hotmail.com
DocumentRoot c:/apache2triad/htdocs/phoenixconceptuals
ServerName phoenixconceptuals.com
ServerAlias www.phoenixconceptuals.com
DirectoryIndex index.html
ErrorLog logs/phoenixconceptuals.com-error_log
CustomLog logs/phoenixconceptuals.com-access_log common
</VirtualHost>
#
<VirtualHost castleravenwood.com:80>
ServerAdmin castleravenwood@hotmail.com
DocumentRoot c:/apache2triad/htdocs/castleravenwood
ServerName castleravenwood.com
ServerAlias www.castleravenwood.com
DirectoryIndex index.html
ErrorLog logs/castleravenwood.com-error_log
CustomLog logs/castleravenwood.com-access_log common
</VirtualHost>
#
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