TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Nginx Common Useful Configuration

77 点作者 frizzy大约 3 年前

4 条评论

frizzy大约 3 年前
Hi guys, I agree with you that today there are a lot of better web servers like traefik, caddy and so one, but nginx is still popular and so one people use it wrong... So I decided to open source my own variant of configs for it)
评论 #30873070 未加载
评论 #30877743 未加载
stevenicr大约 3 年前
glad to see this posted. nginx has driven me crazy the past 4 days. After reading and reading and reading, and experimenting.. I have a feeling that when I ran lets encrypt certbot, it added some things in files that were needed, but became a problem when I actually made the config files that were needed to point to the new folders.. I&#x27;m still not sure actually.<p>I ended up just adding another domain name and configuring it from scratch to point to a matrix client folder, and then running the certbot expand.. and now it&#x27;s working on a different domain.<p>Guides like this one posted are much more help trying understand the whole chain of things as opposed to a bunch of random pseduo answers via stackover and the like.
评论 #30876523 未加载
metadat大约 3 年前
After switching to Traefik, I haven&#x27;t looked back. I prefer the fully open source options of HAProxy or Traefik to the feature-paywalled &quot;free tier&quot; nginx of today. Capability wise, between the two they have everything ngx has and more*. Also, have you ever tried compiling ngx yourself (they don&#x27;t include Lua modules support in their k8s Docker images)? It&#x27;s not easy, interesting, or fun. More of a nightmare.<p>Finally, I sure don&#x27;t miss feeling the urge to bookmark config helper articles like this one- nginx is challenging to configure well! Endless hidden options, and for whatever reason I found their documentation less helpful than HAProxy&#x27;s.<p>If you are forced to continue using it, you have my sympathy.<p>* I&#x27;ve created some rather exotic LB setups as times to meet requirements.
评论 #30875784 未加载
amanzi大约 3 年前
It suddenly feels like Nginx is a legacy system, in the same way Apache became a legacy system when Nginx was launched. If I need a web server my first instinct is to reach for Caddy, or if I just need a reverse-proxy then it&#x27;s either Caddy or Traefik.
评论 #30891226 未加载