You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrea <pa...@eng.it> on 2005/05/19 18:40:30 UTC
[users@httpd] RewriteMap odd behaviour
I' am using RewriteMap to do LoadBalancing...
in my httpd.conf I've written
.....
RewriteMap lb prg:/usr/local/apache2/conf/lb.pl
RewriteRule ^/webconsole http://dartagnan/${lb:webconsole}
.....
but as soon as I start Apache I get in my error.log
Can't open perl script "
": No such file or directory
[Thu May 19 18:20:21 2005] [notice] Apache/2.0.53 (Unix) mod_ssl/2.0.53 OpenSSL/0.9.7g mod_perl/1.999.21 Perl/v5.8.0 configured -- resuming normal operations
It seems like the lb.pl is not present.. but it is do present ...and I made lb.pl executable ( "chmod 777 lb.pl").
My environment:
Apache/2.0.53 (Unix)
mod_ssl/2.0.53
OpenSSL/0.9.7g
mod_perl/1.999.21
Perl/v5.8.0
Any help would be appreciated
Thanks
Re: [users@httpd] RewriteMap odd behaviour
Posted by Joshua Slive <js...@gmail.com>.
On 5/19/05, Andrea <pa...@eng.it> wrote:
>
> I' am using RewriteMap to do LoadBalancing...
> in my httpd.conf I've written
> .....
> RewriteMap lb prg:/usr/local/apache2/conf/lb.pl
> RewriteRule ^/webconsole http://dartagnan/${lb:webconsole}
> .....
>
> but as soon as I start Apache I get in my error.log
>
> Can't open perl script "
> ": No such file or directory
> [Thu May 19 18:20:21 2005] [notice] Apache/2.0.53 (Unix) mod_ssl/2.0.53
> OpenSSL/0.9.7g mod_perl/1.999.21 Perl/v5.8.0 configured -- resuming normal
> operations
>
> It seems like the lb.pl is not present.. but it is do present ...and I made
> lb.pl executable ( "chmod 777 lb.pl").
I can't provide much help, but I can tell you that that likely is
*not* an apache-generated error message. Apache knows nothing in
specific about perl scripts (versus any other type of executable), and
I don't recognize that error message at all. Hence I would guess that
the error is coming from perl itself when it tries to execute the
script.
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