You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alexander Prohorenko <al...@gmail.com> on 2005/08/28 22:32:34 UTC

[users@httpd] Problems with proxying remote URLs

Hello,

I've got problem with using a mod_rewrite module using [P] keyword to
proxy a request.  Everything works just fine with local files and
redirects, but when I'm trying to use a redirect with proxy to remote
destination I'm getting something like:

[Sun Aug 28 14:05:36 2005] [error] [client 1.2.1.2] File does not exist:
proxy:http://my.domain.com/zzz

My config reads like (in .htaccess):

RewriteEngine On
RewriteRule     ^(.*)   http://my.domain.com/$1    [P]

When I am removing the [P] keyword and it tries to do a redirect it
works fine.

Would you advise me please something?  Thanks.

Please, drop me a Cc to my mail address, as far as I'm not regulary
reading this newsgroups.  Thanks.

P.S.  Apache 1.3.33 built from ports on FreeBSD 5.4-STABLE.  I've got
completely the same configuration on Apache 1.3.29 and it works just fine.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Problems with proxying remote URLs

Posted by Alexander Prohorenko <al...@gmail.com>.
The problem was solved by building Apache from ports without mod_accel.

Alexander Prohorenko wrote:
> Hello,
> 
> I've got problem with using a mod_rewrite module using [P] keyword to
> proxy a request.  Everything works just fine with local files and
> redirects, but when I'm trying to use a redirect with proxy to remote
> destination I'm getting something like:
> 
> [Sun Aug 28 14:05:36 2005] [error] [client 1.2.1.2] File does not exist:
> proxy:http://my.domain.com/zzz
> 
> My config reads like (in .htaccess):
> 
> RewriteEngine On
> RewriteRule     ^(.*)   http://my.domain.com/$1    [P]
> 
> When I am removing the [P] keyword and it tries to do a redirect it
> works fine.
> 
> Would you advise me please something?  Thanks.
> 
> Please, drop me a Cc to my mail address, as far as I'm not regulary
> reading this newsgroups.  Thanks.
> 
> P.S.  Apache 1.3.33 built from ports on FreeBSD 5.4-STABLE.  I've got
> completely the same configuration on Apache 1.3.29 and it works just fine.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Problems with proxying remote URLs

Posted by Alexander Prohorenko <al...@gmail.com>.
Joshua Slive wrote:
> On 8/28/05, Alexander Prohorenko <al...@gmail.com> wrote:

>>I've got problem with using a mod_rewrite module using [P] keyword to
>>proxy a request.  Everything works just fine with local files and
>>redirects, but when I'm trying to use a redirect with proxy to remote
>>destination I'm getting something like:
>>
>>[Sun Aug 28 14:05:36 2005] [error] [client 1.2.1.2] File does not exist:
>>proxy:http://my.domain.com/zzz
> 
> 
> Check that you have mod_proxy loaded statically (httpd -l) or
> dynamically (via LoadModule).

Of course it's loaded.

white@artiste:/usr/local/etc/apache>grep proxy httpd.conf

LoadModule proxy_module       libexec/apache/libproxy.so
AddModule mod_proxy.c

If it'd not be loaded, how would the usual proxying of local files work?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems with proxying remote URLs

Posted by Joshua Slive <js...@gmail.com>.
On 8/28/05, Alexander Prohorenko <al...@gmail.com> wrote:
> Hello,
> 
> I've got problem with using a mod_rewrite module using [P] keyword to
> proxy a request.  Everything works just fine with local files and
> redirects, but when I'm trying to use a redirect with proxy to remote
> destination I'm getting something like:
> 
> [Sun Aug 28 14:05:36 2005] [error] [client 1.2.1.2] File does not exist:
> proxy:http://my.domain.com/zzz

Check that you have mod_proxy loaded statically (httpd -l) or
dynamically (via LoadModule).

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org