News for hackers. Stuff that matters.
Re:Avoiding the top Nginx configuration mistakes by exciteabletom on Wednesday February 23, 2022 @02:19AM (#30438557)
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.

Re:Avoiding the top Nginx configuration mistakes by j_autumn on Wednesday February 23, 2022 @05:07AM (#30439570)
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.

Re:Avoiding the top Nginx configuration mistakes by exciteabletom on Wednesday February 23, 2022 @11:09AM (#30442594)
The automatic certificate renewal is a killer feature. Goodbye dodgy cronjobs!
Re:Avoiding the top Nginx configuration mistakes by mekster on Wednesday February 23, 2022 @06:46AM (#30440078)
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.

Re:Avoiding the top Nginx configuration mistakes by ahmetkun on Wednesday February 23, 2022 @03:32AM (#30438989)
> I know of Apache, but that seems to be falling out of favour lately.

lately? more like for the last 10 years afaict.

Re:Avoiding the top Nginx configuration mistakes by jimmySixDOF on Wednesday February 23, 2022 @02:54AM (#30438743)
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.
Re:Avoiding the top Nginx configuration mistakes by exciteabletom on Wednesday February 23, 2022 @04:16AM (#30439240)
Thanks so much for replying! Just looked at some example configs and it looks way slicker than nginx.
Re:Avoiding the top Nginx configuration mistakes by mrweasel on Wednesday February 23, 2022 @04:44AM (#30439416)
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.