Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 05, 2011 8:13 pm 
Offline
Newbie

Joined: Thu Feb 03, 2011 3:20 am
Posts: 2
Anyone know a way to configure Apache to map a domain to a specific sub-path on another domain? For instance I have primary-domain.com/some-path, which I'd like to map a different domain onto so that the content of primary-domain.com/some-path comes up, while the address bar continues to show other-domain.com. The paths below this point would also follow the same pattern, for example, other-domain.com/more would load the content of primary-domain.com/some-path/more

So in a nutshell...
Type URL: other-domain.com
Page loaded: primary-domain.com/some-path
URL remains: other-domain.com

Type URL: other-domain.com/more
Page loaded: primary-domain.com/some-path/more
URL remains: other-domain.com/more

Hope this makes sense - let me know if I can clarify better. Thanks in advance for any tips!

_________________
- David


Top
   
 Post subject:
PostPosted: Sat Mar 05, 2011 8:31 pm 
Offline
Senior Newbie

Joined: Wed Mar 02, 2011 12:02 pm
Posts: 6
If these are all on the same Linode, just use VirtualHosts:

Code:
<VirtualHost other-domain.com:80>
   ...
   DocumentRoot /srv/www/primary-domain.com/public_html/some-path
   ...
</VirtualHost>


Top
   
 Post subject:
PostPosted: Sat Mar 05, 2011 11:50 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
and if it's not on the same server, look into mod_proxy


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group