]> granicus.if.org Git - apache/commit
Error out a bit more nicely if the RewriteMap prg: is not found. We
authorCliff Woolley <jwoolley@apache.org>
Wed, 29 May 2002 04:38:59 +0000 (04:38 +0000)
committerCliff Woolley <jwoolley@apache.org>
Wed, 29 May 2002 04:38:59 +0000 (04:38 +0000)
commit9f3ee68d8ca4badb1c8409f1f4429669dafa6f86
tree497d1935a5f5dc688bb5b195dccaceb1d9a64744
parent6ba2a5369bda5af61fd06078c4348c742358e8b0
Error out a bit more nicely if the RewriteMap prg: is not found.  We
can't just apr_stat in the first init round because we haven't run
apr_tokenize_to_argv() yet, and it would be a relatively ugly hack to run
it twice just for that.  Well, I suppose we could store the argv in the
rewritemap structure, but ... nah.  With this, we shutdown (cleanly, as
opposed to the old exit(1) method) if we go to execute a rewritemap
and discover it doesn't exist, and log a nice descriptive message at the
end of the error_log.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95337 13f79535-47bb-0310-9956-ffa450edef68
modules/mappers/mod_rewrite.c
modules/mappers/mod_rewrite.h