The rewrite rule is different. Something like:
RewriteRule ^(*.)/(*.)/(*.)
http://localhost:8080/perl-bb/script.pl?a=$1&b=$2&c=$3 [P]
However, I worked around the issue and used a ProxyPass to pass the
request to the backend and _then_ do the rewrite. The handler is also
different.
-Jon
P
Philip M. Gollucci wrote:
[error] slurp_filename('/opt/apache2/perl/script.pl?a=a&b=b&c=c')
/ opening: (2) No such file or directory at
/opt/perl/lib/site_perl/5.8.7/i686-linux/ModPerl/RegistryCooker.pm
line 540
This works for me if I am understanding you correctly.
Okay, so
Jonathan Steffan wrote:
1.
Concept:
2.
3.
GET http://domain.tld/search/a/b/c (via :80)
4.
rewrite search/a/b/c ->
http://localhost:8080/perl/script?a=a&b=b&c=c [P] (via .htaccess
RewriteRule) [OK] (localhost:8080 is another apache w/mod_perl)
5.
proxy
1.
Concept:
2.
3.
GET http://domain.tld/search/a/b/c (via :80)
4.
rewrite search/a/b/c ->
http://localhost:8080/perl/script?a=a&b=b&c=c [P] (via .htaccess
RewriteRule) [OK] (localhost:8080 is another apache w/mod_perl)
5.
proxy: http://localhost:8080