{{category OpenBSD,nolink}}OpenBSDのサーバ httpd の設定 (OpenBSD 6.8) 組み込まれている Web サーバが、Apache 1.3系 から(nginx になって)、OpenBSD 5.6 に独自のものに変更されている。 !!! webサーバ(httpd)の起動設定 !! 自動起動 '''/etc/rc.conf.local''' に設定を行う。変数値は '''httpd_flags''' 。 # httpd web server httpd_flags= !!! webサーバ(httpd)の設定 '''/etc/httpd.conf''' に設定する。 OpenBSD の httpd は、 '''/var/www''' に chroot されるようになっている。 * 関連 man → [httpd(8)|https://man.openbsd.org/httpd.8], [httpd.conf(5)|https://man.openbsd.org/httpd.conf.5] # $OpenBSD: httpd.conf,v 0.00 2021/01/01 00:00:00 xxxxx Exp $ server "default" { listen on * port 80 #listen on * tls port 443 # Optional, but probably best - change your syslog.conf to do # what you want with it then. #log syslog root "/htdocs" directory auto index } # Include MIME types instead of the built-in ones types { include "/usr/share/misc/mime.types" # Necessary to ensure patch files show up as text not binary text/plain sig }