Hacker News new | ask | show | jobs
by exciteabletom 1572 days ago
What are some alternatives to NGINX? Is there a maintained fork with a better config?

I know of Apache, but that seems to be falling out of favour lately.

4 comments

I like Caddy: https://caddyserver.com/ Nice community and enough features for my (basic) use cases.

The only thing that I don’t quite like is the logging format.

The automatic certificate renewal is a killer feature. Goodbye dodgy cronjobs!
Just responded on alternatives on another post.

https://news.ycombinator.com/item?id=30440028

I'm starting to think Apache isn't bad once again after pulling several hairs out of nginx config complications over the last 10 years.

If I just wanted to alias system path of '/some/path/' as 'https://domain/another_path/' in the URL, I don't know how to do that... Is it 'alias' or 'root' and should it have a slash at the end or not??? I usually just give up and symlink the directory on the system.

Same with proxy_pass on ending slash that is confusing.

And the priority of 'location' block is a nightmare until you Google enough to figure it out every time I configure nginx, not to mention the cryptic convention of ~ or ~^ and the likes and the fact you can't effectively nest location blocks.

> I know of Apache, but that seems to be falling out of favour lately.

lately? more like for the last 10 years afaict.

HAProxy is one and I'd like to see a breakdown of how these config issues either spillover or are dealt with differently in that environment.
Thanks so much for replying! Just looked at some example configs and it looks way slicker than nginx.
There's an overlap in features between Nginx and HAProxy, but one isn't necessarily a replacement for the other. Nginx is a full webserver, HAProxy isn't a webserver.