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 July 17th, 2001, 12:13 PM
edwards151 edwards151 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 26 edwards151 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Multiple domains to one IP

Quick question. I have multiple domains that I want directed to the same site. For example, mydomain.com is the main site. I also own mydomain.net and mydomain.org, and I want these two domains to point to mydomain.com.

Other than setting up the DNS so that all domains point to the same IP, what do I need to do to the Apache conf?

As it is right now, the DNS has been changed and nothing has been done to Apache. Sure enough, mydomain.net points where it should (to the mydomain.com site), but the URL in the location bar remains mydomain.net. Ideally, I would like the URL to change from mydomain.net to mydomain.com as soon as the browser opens the homepage.

Hope this isn't too confusing.

Thanks for any help!

Jon

Reply With Quote
  #2  
Old July 17th, 2001, 11:12 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
>> I would like the URL to change from mydomain.net to mydomain.com

UseCanonicalName Off
...
...
# put the following to the bottom of httpd.conf
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain\.net$ [OR]
RewriteCond %{HTTP_HOST} ^mydomain\.org$
RewriteRule ^(.*) http://mydomain.com$1 [R,L]

Reply With Quote
  #3  
Old July 18th, 2001, 03:21 AM
niyogi niyogi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Austin,TX
Posts: 62 niyogi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 55 sec
Reputation Power: 0
read in the apache manual about name-based virtual hosting.

www.apache.org

It's pretty simple.

-S

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Multiple domains to one IP


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 2 hosted by Hostway