mod_rewrite 使用 Rewritemap prg 指令导致 apache 崩溃

发布于 2024-08-21 04:46:56 字数 320 浏览 4 评论 0原文

Apache 配置:

RewriteEngine on
RewriteLock /var/www/lib/rewrite.lock
RewriteMap sessionValid prg:/var/www/lib/allow.php

我修复了设置文件可执行文件的明显问题,但现在它给出了:

[Fri Feb 12 01:55:31 2010] [错误] (2)没有这样的文件或目录:exec “/var/www/lib/allow.php”失败

但该文件显然存在。

Apache configuration:

RewriteEngine on
RewriteLock /var/www/lib/rewrite.lock
RewriteMap sessionValid prg:/var/www/lib/allow.php

I fixed the obvious of setting the file executable, but now it is giving this:

[Fri Feb 12 01:55:31 2010] [error] (2)No such file or directory: exec
of '/var/www/lib/allow.php' failed

But the file clearly exists.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

于我来说 2024-08-28 04:46:56

...忘记让 apache 用户可以执行 allowed.php 。

...Forgot to make allow.php executable for the apache user.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文