Install Apache HTTP Server on OpenBSD 7.5
Step 1 – Install
pkg_add apache-httpd
rcctl enable apache2
rcctl start apache2
Step 2 – Open firewall ports
# /etc/pf.conf: pass in on egress proto tcp to port { 80 443 }
pfctl -f /etc/pf.conf
Step 3 – Verify
curl -I http://localhost
apachectl -v
Main config: /etc/apache2/httpd.conf, vhosts in /etc/apache2/conf.d/.