Link to home
Create AccountLog in
Avatar of golfDoctor
golfDoctor

asked on

Can you point a folder in a sub domain to a different server?

Say I have a sub domain like http://friends.mysite.com and there are locations in the sub domain like:

http://friends.mysite.com/US
http://friends.mysite.com/FR
etc...

Is it possible to map a folder within the sub domain to a different server that someone else hosts?  For example, could I point http://friends.mysite.com/DE to someone elses server, and it would still run under http://friends.mysite.com/DE?

So the URL would look like the others (above), but hosted on different machine.  

I know you can point a sub domain to an IP address (A record), but can one folder of the sub domain be hosted on my server, and another folder be hosted on another server?  So essentially I'd be mapping this at the folder level.  Is that even possible?
SOLUTION
Avatar of tigermatt
tigermatt
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of golfDoctor
golfDoctor

ASKER

Framesets are not an option.  

I agree, I don't think it's possible.  Just want to make sure.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
meverest - Can you expand on your answer a little?

I use ISAPI Rewrite now, but not sure how that relates to a sub folder being hosted on another server.  

Let's change this around a little.  The client hosts the sub domain with URLs like http://friends.mysite.com/US and http://friends.mysite.com/FR on their servers, but they do not have ISAPI Rewrite or Mod-Rewrite.  But they want to point http://friends.mysite.com/DE at my server (I do have ISAPI Rewrite).

I'm not sure ISAPI Rewrite works in this setup?  I'm not sure how they would set up the DNS to point http://friends.mysite.com/DE at a different IP address (my server IP).
Hi,

using the ISAPIrewrite PROXY feature, you can map a url on one server to any other server, e.g:

RewriteProxy /DE(.+) http\://some.other.site.com$1 [I,U]

Now when someone requests http://friends.mysite.com/DE/page.html, they will see the content of http://some.other.site.com/page.html

Cheers.
OK, yes, I get that.  I need to maintain the same URL though.  Doesn't seem like that would work in this setup, correct?
Yes, the user will see the same url.

If the remote site uses explicit href, though (e.g. <a href="http://some.other.site.com/otherpage.html">link</a>) then when the user clicks a link, the url will change to the other site.

If the remote site uses relative links, though (e.g. <a href="/otherpage.html">link</a>)  then the location will always display your own url.

Cheers.
Thanks, we are using full url.  However, I've thought some more about ISAPI rewrite, and it may serve the purpose.
>> we are using full url

you are?  on the 'http://some.other.site.com/otherpage.html' pages?  That is very unorthodox - I suggest that you consider recoding that site to use relative references instead.

Cheers.