DEV Community

Cover image for OpenBSD httpd 6.3: Web Server

OpenBSD httpd 6.3: Web Server

nabbisen on October 05, 2018

Intro OpenBSD has its own web server called "httpd". Backgrounds It's possible on OpenBSD to install Nginx and Apache (ca...
Collapse
 
nabbisen profile image
nabbisen

tux0r, thank you for the precious information about your practices!
I succeeded in building a Python Django2 server this year, too.
Please let me know if you have should-dos or shouldn't dos on using OpenBSD httpd :)

 
nabbisen profile image
nabbisen • Edited

Hmmm, you mean web server gateway interface is completely different from fast common gateway interface.
Truth sometimes tastes bitter!

I'm in trouble because there are several Python libraries and frameworks I want to use😅
I'll be in search for some solution🤔
Thank you very much!

Thread Thread
 
raratiru profile image
raratiru

You can use httpd as a reverse proxy for uwsgi:

uwsgi-docs.readthedocs.io/en/lates...

Thread Thread
 
nabbisen profile image
nabbisen

Hi George,
Thank you for your kind commenting.
It's a happy fact that OpenBSD's httpd is in combination with Python's uwsgi.

With a combination of OpenBSD's httpd and uwsgi/supervisord, I've recently hosted a Wagtail website which is based on Django 😉

Collapse
 
bestfriend101 profile image
BestFriend101

If you're interested, here's how I use it in conjunction with Ruby On Rails. httpd only does the ACME-challenges for TLS-certificates:

github.com/basicfeatures/openbsd-r...

Thank you and have a wonderful day!

Collapse
 
nabbisen profile image
nabbisen

Hi, cloud69420, thank you for your sharing! Really really great.
I'm happy to know relayd definitions and a rc script are used when running Ruby on Rails apps in OpenBSD 😃 Well, I have tried another way, that was with Supervisord. It didn't sit well with my favor 😅

Collapse
 
pouyae profile image
Pouya Eghbali

reyk/httpd was last updated 3 years ago, 2015 issues are still open, there's no http/2 support, and I'm pretty sure it lacks a lot of other features. Why would anyone want to use it? Security isn't everything.

Collapse
 
nabbisen profile image
nabbisen • Edited

Hi, Pouya :)
Thank you for your commenting.

It seems the Github repo is inactive although I don't know about the fact, for the releases tags are just about 5.7 base and 5.8 base.
OpenBSD projects have their own official CVS src repository, which is accessible in openbsd.org .
OpenBSD httpd has been recently being updated. For example, the latest release, 6.6, changelog is in openbsd.org/plus66.html .

Well, yes, security isn't everything. It's up to one's values.
As to me, the simplicity, clean licenses and also the difficulty with less examples are the points as well as its security. In a word, I enjoy OpenBSD. lol 😆

Collapse
 
bestfriend101 profile image
BestFriend101

Also maybe worth mentioning: openbsd.org/papers/httpd-asiabsdco...

Collapse
 
nabbisen profile image
nabbisen

Thank you, again, so much!
Haha, although, of course, I knew it, I haven't read it thoroughly. I will😁

Collapse
 
hammondmason profile image
HJM

Nice intro. Short and to the point. Thanks.

Collapse
 
nabbisen profile image
nabbisen

HJM, thanks, too, for your cheering commenting ☺️

Collapse
 
anon987654321 profile image
anon987654321

Wonderful article - keep up the good work!

Collapse
 
nabbisen profile image
nabbisen

Thank you for your comments cheering me up.
I still spend a happy time with OpenBSD httpd 😊