lighttpd:mod_rewrite 忽略 .htaccess 中的规则
lighttpd: mod_rewrite ignoring rules in .htaccess
我即将学习在 lighttpd 上重写规则。
我有一个问题:这是 lighttpd 忽略 .htaccess 文件的正常技术水平吗?
我在 .htaccess 中有一些规则,它们被忽略了,当我将它们写入 lighttpd.conf 时,它们被正确执行。
如何启用 mod 重写以读取 .htaccess 文件?
引用 Lighttpd FAQ:
Do you support .htaccess files?
No. Lighty's design does not permit implementing this functionality as config files are loaded at startup time and .htaccess
would be needed to be parsed at request time.
[…]
Furthermore, .htaccess
files are Apache config files. We would need to write a parser and it might not even be possible to map all functionality to lighty logic.
我即将学习在 lighttpd 上重写规则。 我有一个问题:这是 lighttpd 忽略 .htaccess 文件的正常技术水平吗?
我在 .htaccess 中有一些规则,它们被忽略了,当我将它们写入 lighttpd.conf 时,它们被正确执行。
如何启用 mod 重写以读取 .htaccess 文件?
引用 Lighttpd FAQ:
Do you support .htaccess files?
No. Lighty's design does not permit implementing this functionality as config files are loaded at startup time and
.htaccess
would be needed to be parsed at request time.[…]
Furthermore,
.htaccess
files are Apache config files. We would need to write a parser and it might not even be possible to map all functionality to lighty logic.