OpenBSD 5.6 introduced a new daemon called httpd, which supports CGI (via FastCGI) and TLS. No additional work is needed to install the new httpd daemon because it is included in the base system. This article explains how to setup a basic web server using it.
We will be editing the following files.
/etc/rc.conf.local in your favorite text editor and add:
/etc/httpd.conf. Use the example below as a template, and make changes as noted below in the comments. Replace "example" accordingly.
Next, upload your web content and put it into
Your new httpd daemon is configured for use. Now, you just need to start the server:
$ doas /etc/rc.d/httpd start