2 # Default httpd.conf file for Akkoma on OpenBSD
3 # Simple installation instructions
4 # 1. Place file in /etc
5 # 2. Replace <IPv4 address> with your public IP address
6 # 3. If using IPv6, uncomment IPv6 lines and replace <IPv6 address> with your public IPv6 address
7 # 4. Check file using 'doas httpd -n'
8 # 5. Enable and start httpd:
9 # # doas rcctl enable httpd
10 # # doas rcctl start httpd
13 ext_inet="<IPv4 address>"
14 #ext_inet6="<IPv6 address>"
17 listen on $ext_inet port 80 # Comment to disable listening on IPv4
18 # listen on $ext_inet6 port 80 # Comment to disable listening on IPv6
19 listen on 127.0.0.1 port 80 # Do NOT comment this line
24 location "/.well-known/acme-challenge/*" {
29 location "/robots.txt" { root "/htdocs/local/" }
30 location "/*" { block return 302 "https://$HTTP_HOST$REQUEST_URI" }
34 include "/usr/share/misc/mime.types"