installation de nginx
apk update
apk add nginx
lancer nginx
rc-service nginx start # pour lancer maintenant nginx
rc-update add nginx default # pour lancer nginx à chaque reboot del pour enlever
fichier de configuration pour diriger sur la page /var/www/localhost/htdocs
localhost:/etc/nginx/http.d# cat default.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/localhost/htdocs;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}
relancer le service
rc-service nginx reload
