Patching httpd(8)—working with OpenBSD src

Though clearly NOT recommended, I went w/ patching httpd(8) on OpenBSD 6.9-stable (not -current) as recommended by httpd-plus. Lucky me, building and installing the httpd-plus binary along w/ manpage completed successfully. 🤞
Here are the steps I took:

1. Fetch the -stable src tree

cd /usr
doas cvs \
 -qd \
 checkout -rOPENBSD_6_9 -P src

2. Fetch httpd-plus src

cd ~
ftp -Vo - \ \
 | tar xzvf -

3. Install httpd-plus

…by applying patches and building httpd binary.

doas ksh httpd-plus-current/install 2>&1 \
 | tee httpd-plus-install.log

4. Adapt httpd.conf

# /etc/httpd.conf

#  location not found "/*" {
#    request rewrite "/error/index.html"
#  }
errdocs from "/htdocs/"

5. Validate httpd-conf and restart httpd

doas httpd -n
doas rcctl restart httpd


Always recommended reading—PRIOR to doing anything (of course): the excellent OpenBSD website and FAQs.In particular:

  1. Anonymous CVS
  2. Building the System from Source