Lighttpd - 可以使用 .htaccess / 目录
我知道大多数教程和主题都说您必须编辑 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,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)