4 ms·
Only .htaccess support is missing from nginx. Good web server.
by compilator1 3y ago
Only .htaccess support is missing from nginx. Good web server.
- mtmail 3y agoRelated (opinionated) https://www.nginx.com/resources/wiki/start/topics/examples/likeapache-htaccess/ https://www.nginx.com/resources/wiki/start/topics/examples/l... "Stop using .htaccess. It’s horrible for performance. NGINX is designed to be efficient"
- networked 3y ago.htaccess doesn't have to affect performance; this is more of a historical artifact. With an HTTP server expecting a read-only site root, you could only read every .htaccess once, when you replaced the site root filesystem with a new version. A user could still see a read-write filesystem, only with a "save" button (command, etc.) that created and mounted a new read-only site root. While it is a performance and security burden, people reject .htaccess is too readily. It has enabled users who aren't quite programmers to assemble sites out of web applications and components that live in different subdirectories. It has clear value. (Not that I think nginx should implement it.)
- bandrami 3y agoI think the bigger issue is that the use case .htaccess was designed for (multiple users sharing a single physical server) just isn't really a thing anymore AFAIK. If you're just managing rules in your own container somewhere, there's no sense keeping the logic in multiple places.
- SahAssar 3y ago> With an HTTP server expecting a read-only site root, you could only read every .htaccess once, when you replaced the site root filesystem with a new version In that case you would still need some way to trigger a reload of the htaccess, right? If so, is there a usability difference to just including nginx configs on the same locations?
- foverzar 3y ago> This happens for EVERY request. It doesn't need to, though. These days you only need .htaccess for compatibility with old PHP apps. Stacking another instance of Apache on top feels bloated.
- piperswe 3y agoFor those old PHP apps, you can probably convert the .htaccess into nginx config.
- minusf 3y ago.htaccess is self inflicted pain, no need to downvote :)
- pseudosavant 3y agonginx conf is self-inflicted pain...
- whalesalad 3y ago2006 called and would like you to come back
- andersrs 3y ago[flagged]