Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 15th, 2001, 04:01 AM
Sheriff's Avatar
Sheriff Sheriff is offline
Oheim
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Austria
Posts: 69 Sheriff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Multiple Domains

Hy-
I have a question...

mydomain.com
mydomain.de
mydomain.at

all serve the same Website. I created 3 name based virtual hosts with the same doc root.

I was wondering if there is a better solution (performance) for this, or if what I did by making 3 identical vhosts - one for each domain - was the right thing to do.

Thanks for your help!
best regards
Sheriff
__________________
There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

God is just hacker who rooted the world!

Reply With Quote
  #2  
Old October 15th, 2001, 04:17 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> all serve the same Website

Then start here -> http://httpd.apache.org/docs/mod/core.html#serveralias

Example:

ServerName www.mydomain.com
ServerAlias mydomain.com www.mydomain.de mydomain.de www.mydomain.at mydomain.at

Reply With Quote
  #3  
Old October 15th, 2001, 05:04 AM
Sheriff's Avatar
Sheriff Sheriff is offline
Oheim
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Austria
Posts: 69 Sheriff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Thanks! I red this part of the manual as well. I just wasn't sure if it was what I was looking for. Sounded to me like they only ment
sub.mydomain.at
sub2.mydomain.at
but then again, those would point to the same docroot anyways...
confusing for a newbie...

best regards
Sheriff

Reply With Quote
  #4  
Old October 15th, 2001, 02:41 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> but then again, those would point to the same docroot anyways

Yes, unless you wanted it the other way around. Say you don't specify a dedicated <VirtualHost> block for sub.mydomain.at, the default docroot will be used.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Multiple Domains


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway