Lighttpd - 可以使用 .htaccess / 目录

发布于 2024-10-31 15:49:13 字数 103 浏览 8 评论 0原文

我知道大多数教程和主题都说您必须编辑 lighttpd.conf 并在其中添加重写规则,但是是否可以利用 lighttpd 格式使用每个目录的 .htaccess 文件?

谢谢

I know most tutorials and topics say that you have to edit lighttpd.conf and add the rewrite rules there, but is it possible to use the .htaccess files per directory utilizing the lighttpd format?

Thanks

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

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

发布评论

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

评论(1

花落人断肠 2024-11-07 15:49:13

不,lighttpd 目前不支持 .htaccess 或类似的每目录功能。然而,Lighttpd2(目前是 pre-alpha)可能会提供这样的功能。

如果您只想设置每个目录的 PHP 设置,您可能需要查看 此处(或从 PHP 5.3.x 开始支持的 .user.ini)

No, lighttpd does currently not support .htaccess or a similar per directory feature. Lighttpd2 (which is pre-alpha at this moment) however will probably provide such a feature.

If you only want to set per per directory PHP settings you might want to take a look here (or .user.ini which is supported from PHP 5.3.x)

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