5 ms·
I'd love to just "switch to X", but there is no X which provides all of the above in one great package: Static file serving, load-balanced proxying (TCP/HTTP),
by heipei 6y ago
I'd love to just "switch to X", but there is no X which provides all of the above in one great package: Static file serving, load-balanced proxying (TCP/HTTP), fine-grained caching, automatic Let's Encrypt update, API-based configuration (for dynamic upstreams etc), monitoring. Maybe there shouldn't be such a tool. For all other use-cases I go with nginx since it at least provides decent proxying, caching and static file serving.
- kawsper 6y agoDo you know if it's the same with Openresty?
- brightball 6y agoCorrect me if I’m wrong, but doesn’t Caddy 2 do almost all if that?
- 411111111111111 6y agoYou mean the software which wouldn't start when let's encrypts acme server was offline and which developers said this is working as intended? I mean, I'd definitely encourage people to use it for hobby projects, but if that's how the developers see their software, I would never trust them with anything serious.
- mholt 6y agoSomeone's a little out of the loop.
- 411111111111111 6y agoI know it was "fixed" after thousands of people chimed in. Nonetheless, I still wouldn't be able to trust developers who think that's reasonable. if it had been an error and unintentional i wouldn't have been worried. mistakes happen to everyone. but it was an actual design decision. Without serious code review i'd be too worried the developers had any other bright ideas.
- likeclockwork 6y agoYou're responding to caddy's author.
- heipei 6y agoHad to check, Caching is still missing from Caddy 2, everything else seems to be there [1]. Now if there's no missing minor feature that I rely on in nginx, I might be able to switch eventually, fingers crossed. [1] https://github.com/caddyserver/cache-handler/issues/1 https://github.com/caddyserver/cache-handler/issues/1
- mmm_grayons 6y agoNginx does automatic let's encrypt? Since when?
- atoav 6y agocertbot --nginx foo.bar.com works like a charm
- jimjag 6y agoX == Apache httpd 2.4
- SEJeff 6y agoI was thinking the exact same thing ironically. Static file serving? Sure! Load balanced proxying? mod_proxy_balancer is great! Fine grained caching? mod_disk_cache is also great Updating loadbalancer bits via the api? mod_proxy_balancer supports a balancer-manager endpoint for that to do live updates monitoring? mod_status + prometheus exporter or mod_prometheus_status native LE support? https://github.com/icing/mod_md https://github.com/icing/mod_md is going to be rolled into upstream apache
- cyberpunk 6y agoHave you actually seen an apache in the wild in the last few years? No one picks it anymore, I'm not sure why.. Well, besides the fact that nginx is now nginx-ingress-controller and we all use k8.. :/
- TechBro8615 6y agoMaybe it‘s due to guilt-by-association with PHP and the LAMP stack...
- jldugger 6y agoYes, but I know some of the apache.org SRE so maybe my view is biased.
- SEJeff 6y agoThe most amazing guy who wrote the book on mod_rewrite (Rich Bowen) is from the same tiny town where I grew up in. The apache software foundation upstream folks are super good people.
- mekster 6y agoI still use it to have basic auth connected to LDAP. The weakness of nginx is that it can't have a dynamic module and if it's not compiled in, you need to roll your own build, which I won't do due to maintenance burden.