httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <>
Subject Re: [users@httpd] Problem with wildcard subdomains and ProxyPass
Date Wed, 03 Apr 2013 09:34:26 GMT
On Tue, Apr 2, 2013 at 9:18 PM, Thibaut Lemaire <> 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
'' and have apache proxy to ''.

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).



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message