httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thibaut Lemaire <tib1av...@gmail.com>
Subject Re: [users@httpd] Problem with wildcard subdomains and ProxyPass
Date Thu, 04 Apr 2013 09:49:01 GMT
Le 03/04/2013 11:34, Tom Evans a écrit :
> On Tue, Apr 2, 2013 at 9:18 PM, Thibaut Lemaire <tib1avivo@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-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Thank you Tom, it's the manner we found and will use.

Have a good day,

Thibaut

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


Mime
View raw message