Hi All!

I need to substitute requested page with aniother, i. e. if client has reqested 
page http://arifolth/meat[anything].html 
he should get http://arifolth/handbook.html
as far as I understand reverse proxyfying is the only right way to do it
mod rewrite alone works fine, it gave error 302 to the client  - the document 
has moved ...
but I need to get not a redirection reply but the substituted page itself. when 
I`m trying to use mod_proxy things are gone bad: server`s answer is always 403 
- Access forbidden!
(there are no problems with this page/file acl)
and mod_rewrite log looks like this:
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a80798/initial] (2) init rewrite engine 
with requested uri /meatbug.htm
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a80798/initial] (3) applying pattern 
'^/meat(.*)' to uri '/meatbug.htm'
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a80798/initial] (2) rewrite 
'/meatbug.htm' -> '/handbook.html'
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a80798/initial] (2) forcing 
proxy-throughput with http://localhost/handbook.html
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a80798/initial] (1) go-ahead with proxy 
request proxy:http://localhost/handbook.html [OK]
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a849a0/initial/redir#1] (2) init rewrite 
engine with requested uri /error/HTTP_FORBIDDEN.html.var
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a849a0/initial/redir#1] (3) applying 
pattern '^/meat(.*)' to uri '/error/HTTP_FORBIDDEN.html.var'
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a849a0/initial/redir#1] (1) pass through 
/error/HTTP_FORBIDDEN.html.var
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a96848/subreq] (2) init rewrite engine 
with requested uri /error/include/top.html
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a96848/subreq] (3) applying pattern 
'^/meat(.*)' to uri '/error/include/top.html'
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a96848/subreq] (1) pass through 
/error/include/top.html
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a9e888/subreq] (2) init rewrite engine 
with requested uri /error/include/bottom.html
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a9e888/subreq] (3) applying pattern 
'^/meat(.*)' to uri '/error/include/bottom.html'
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555a9e888/subreq] (1) pass through 
/error/include/bottom.html
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555aa28a8/subreq] (2) init rewrite engine 
with requested uri /error/contact.html.var
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555aa28a8/subreq] (3) applying pattern 
'^/meat(.*)' to uri '/error/contact.html.var'
127.0.0.1 - - [13/Nov/2007:16:59:21 +0300] 
[localhost/sid#5555557c37a0][rid#555555aa28a8/subreq] (1) pass through 
/error/contact.html.var


Any help would be appreciated!

parts of httpd.conf:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog rewrite.log
RewriteLogLevel 9
RewriteRule ^/meat(.*) /handbook.html [P,L]
</IfModule>

<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /handbook.html http://arifolth
ProxyPassReverse /handbook.html http://arifolth
</IfModule>

/usr/sbin/httpd2 -V
Server version: Apache/2.2.3
Server built:   Nov 25 2006 19:58:33
Server's Module Magic Number: 20051115:3
Server loaded:  APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)

on OpenSuse 10.2 x64

thanx in advance
--
WBR,
Alexander Nilov
mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to