Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a domain abc123.com and a second domain def456.com. I've setup def456.com/forum. However I want users to goto and only see forum.abc123.com.

The forum is SMF. Could anyone point me in the right direction? Maybe I have to use Apache ReWrite rules? I'm not sure.

To be clear, I never want the user to know they are actually browsing on the def456.com domain.

thank you!

share|improve this question
    
How deep to you want to hide ? If both are on different servers, they can see the IP / Geo localisation / ASnumber / reverse DNS / http 404 specific error –  Mathieu Chateau Feb 4 '10 at 18:48
add comment

2 Answers

up vote 1 down vote accepted

Have forum.abc123.com proxy def456.com/forum. Sort of like (if your using apache):

<virtualhost *:80>
   servername forum.abc123.com
   proxypass / http://def456.com/forum/
   proxypassreverse / http://def456.com/forum/  
</virtualhost>

Although setting up the forums under forum.abc123.com in the first place would be easier.

share|improve this answer
    
Problem with this is I'm using cpanel on shared hosting. Dont think I can do this –  shaiss Feb 4 '10 at 19:03
    
You may be out of luck. I looked around the cpanel demo and there doesn't appear to be support for proxying. –  David Feb 6 '10 at 3:44
add comment

you could point forum.abc123.com to the def456.com and there setup a virtualhost to handle forum.abc123.com

You aren't trying to do illegal stuff, are you ?

share|improve this answer
    
LOL no. Just hosting a forum for a friend's site on my server. Could you elaborate a bit please? –  shaiss Feb 4 '10 at 18:53
    
On your friend dns, make forum.abc123.com point to your server IP. On your server, create a virtualhost which match forum.abc123.com and contains your forum stuff. That simple, even no need for /forum, point it directly to the good root folder –  Mathieu Chateau Feb 4 '10 at 19:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.