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
 Multiple Domains
Google
Post new topic Reply to topic
Author Message
Ads
 
 


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

PostPosted: Mon Mar 13, 2006 8:36 am Reply with quoteBack to top

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!
________
Stearns-knight


Last edited by Ads on Sat Feb 12, 2011 11:51 pm; edited 1 time in total
View user's profileSend private message
dawg
support
support


Joined: 11 Apr 2004
Posts: 180

PostPosted: Mon Mar 13, 2006 9:16 pm Reply with quoteBack to top

yes --look for virtual host
View user's profileSend private message
Ads
 
 


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

PostPosted: Tue Mar 14, 2006 8:37 am Reply with quoteBack to top

Do I look for this in apache2triad?
________
EASY VAPE


Last edited by Ads on Sat Feb 12, 2011 11:51 pm; edited 1 time in total
View user's profileSend private message
Vlad Alexa Mancini
lead developer
lead developer


Joined: 07 Jul 2003
Posts: 1539

PostPosted: Tue Mar 14, 2006 11:37 am Reply with quoteBack to top

yes apache2triad\manual\vhosts\index.html
View user's profileSend private message
cigraphics
 
 


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

PostPosted: Tue Mar 14, 2006 1:52 pm Reply with quoteBack to top

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>
View user's profileSend private messageSend e-mailYahoo Messenger
Ads
 
 


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

PostPosted: Sun Mar 19, 2006 4:37 am Reply with quoteBack to top

Thank you guys very much...I'll check that out.
________
Alcohol rehab forum


Last edited by Ads on Sat Feb 12, 2011 11:52 pm; edited 1 time in total
View user's profileSend private message
Camac
 
 


Joined: 30 Jan 2006
Posts: 22
Location: Australia

PostPosted: Thu Apr 20, 2006 5:27 am Reply with quoteBack to top

or use my tutorial http://forum.diywebserver.com/index.php?topic=3986.0
View user's profileSend private messageMSN Messenger
Ravenwood
 
 


Joined: 25 Apr 2006
Posts: 1

PostPosted: Tue Apr 25, 2006 7:17 pm Reply with quoteBack to top

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
View user's profileSend private message
dawg
support
support


Joined: 11 Apr 2004
Posts: 180

PostPosted: Tue Apr 25, 2006 11:58 pm Reply with quoteBack to top

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>
#
View user's profileSend private message
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