Forum Moderators: phranque

Message Too Old, No Replies

Mapping url paths to an external server

         

Jasebase

1:43 pm on Nov 17, 2009 (gmt 0)

10+ Year Member



Hi there,

Is there a way in Apache to map a url path to a separate server?

For example, I want to be able to map:
http://example.com/blog/ to http://blog.example.com/
and
http://example.com/event/ to http://event.example.com/
etc.

Is this possible at all or am I dreaming?
Or is this a DNS issue and I am completely off track?

Thanks in advance!

[edited by: jdMorgan at 3:14 pm (utc) on Nov. 17, 2009]
[edit reason] example.com [/edit]

jdMorgan

1:50 pm on Nov 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are trying to avoid using a redirect, which would expose the 'new' URL to the client (e.g. search engines and browsers), then this is an application for a 'reverse proxy.' See Apache mod_proxy, and this recent thread [webmasterworld.com].

Jim

Jasebase

2:51 pm on Nov 17, 2009 (gmt 0)

10+ Year Member



Thank you JDMorgan!
I have immediately put this in place and it worked perfectly!