On Tue, Apr 2, 2013 at 9:18 PM, Thibaut Lemaire <tib1av...@gmail.com> wrote:
>
> Le 02/04/2013 18:45, Tom Evans a écrit :
>
>> Do you mean proxy - you want to connect to a different server, fetch
>> that content over the network to this server, and then deliver it to
>> the client?
>
>
> Yes, it's what I want to do. Isn't it the good way ?
>

Oh, I see what you are trying to do now. You want to request
'facebook.com.mysite.com' and have apache proxy to 'facebook.com'.

It would probably be easier to set up a real http proxy server and use
that instead, almost certainly this approach will fail at some point.
However - untested, but something like this should suffice:

     RewriteEngine on
     RewriteLog logs/rewrite.log
     RewriteLogLevel 5
     RewriteCond     %{HTTP_HOST}    (.*).MyDomain.tld$
     RewriteRule     (.*)  %1$1 [P]


If it doesn't work, there will be some lovely debug information in
logs/rewrite.log (relative to server root).

Cheers

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to