draft
This commit is contained in:
parent
882ad147ae
commit
0f2dfa42fd
36
HowtoOpenBSD/httpd.md
Normal file
36
HowtoOpenBSD/httpd.md
Normal 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
|
||||||
|
~~~
|
Loading…
Reference in a new issue