TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

OpenBSD's httpd gets URL rewrite

75 pointsby njnalmost 7 years ago

4 comments

Athasalmost 7 years ago
I don&#x27;t have much to say about this patch in particular, but I want to praise OpenBSD&#x27;s httpd in general. I&#x27;m a hacker, not a systems administrator, and while I know how to set up Unix systems, I&#x27;m not an expert, nor do I have the time or inclination to become one. OpenBSD&#x27;s httpd (and the other OpenBSD daemons for that matter) are distinct in that they have so few features, and are documented so well, that I can configure them and feel that I understand exactly the implications of my configuration. I trust that what I have built works. I have even read the code on occasion if I was unsure about something - it&#x27;s short and simple, so it&#x27;s perfectly feasible.<p>I have no illusions about OpenBSD&#x27;s httpd being able to replace nginx or Apache in larger deployments, or that the latter cannot be configured to be just as safe and robust, but for the lone hacker or researcher who just needs a simple web server to serve static files or front FastCGI, OpenBSD&#x27;s httpd is an excellent fit.
评论 #17195297 未加载
评论 #17195896 未加载
评论 #17195356 未加载
评论 #17199391 未加载
notaplumberalmost 7 years ago
This is a patch. It was sent to a mailing list for review. It has not been committed.<p>Also here&#x27;s the revised patchset, which is more thorough and changes some config syntax:<p><a href="https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-tech&amp;m=152763303217829&amp;w=2" rel="nofollow">https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-tech&amp;m=152763303217829&amp;w=2</a><p><a href="https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-tech&amp;m=152763343417988&amp;w=2" rel="nofollow">https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-tech&amp;m=152763343417988&amp;w=2</a> (adds rewrite)<p><a href="https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-tech&amp;m=152763318517884&amp;w=2" rel="nofollow">https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-tech&amp;m=152763318517884&amp;w=2</a>
mfontanialmost 7 years ago
What I really like about this is how short, and readable, the patchset for the feature is.<p>Sure, it lacks tests - and it&#x27;s had a couple revisions since… but it&#x27;s something to behold.
stock_toasteralmost 7 years ago
I&#x27;m hopeful that someday httpd will support adding custom response headers -- for things such as adding a cache-control header.<p>Until then, it seems the recommendation is to run relayd in front of httpd, in order to add such headers.