19
0
Fork 0
This commit is contained in:
gcolpart 2019-02-18 20:15:21 +01:00
parent 882ad147ae
commit 0f2dfa42fd
1 changed files with 36 additions and 0 deletions

36
HowtoOpenBSD/httpd.md Normal file
View File

@ -0,0 +1,36 @@
# httpd
<https://man.openbsd.org/httpd.8>
<https://man.openbsd.org/httpd.conf.5>
## Configuration
minimale :
~~~
chroot "/var/www"
server "default" {
listen on * port 80
root "/htdocs"
}
~~~
## Administration
Vérifier la configuration :
~~~
# httpd -nf /etc/httpd.conf
~~~
Lancer le démon :
~~~
# httpd
~~~
Stopper le démon (gruik) :
~~~
# pkill -9 httpd
~~~