Re: Problem with wildcard subdomains and ProxyPass

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 2, 2013 at 9:18 PM, Thibaut Lemaire <tib1avivo@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux