try to build nginx from alpine

This commit is contained in:
hugo gogo
2022-09-06 12:45:50 +02:00
parent c2ecbf5e11
commit 409599d558
4 changed files with 45 additions and 27 deletions

View File

@@ -11,19 +11,19 @@ server {
# return 301 https://$host$request_uri; # redirect on https
}
server {
listen 443 ssl; # for ipv4, on port 443, specifying that accepted connections should works in ssl mode
listen [::]:443 ssl; # for ipv6
server_name hulamy.42.fr;
ssl_certificate /etc/ssl/certs/hulamy.42.fr.crt; # specifies the file with the ssl certificate (self signed here) generated by openssl
ssl_certificate_key /etc/ssl/private/hulamy.42.fr.key; # specifies the file with the secret key of the certificate
root /var/www/html/; # contains default nginx index.nginx-debian.html
index index.html index.htm index.nginx-debian.html index.php; # defines files that will be used as index (https://nginx.org/en/docs/http/ngx_http_index_module.html)
location / {
try_files $uri $uri/ =404; # from /etc/nginx/sites-enabled/default : First attempt to serve request as file, then as directory, then fall back to displaying a 404
# for test
root /data/wwws/;
}
}
#server {
# listen 443 ssl; # for ipv4, on port 443, specifying that accepted connections should works in ssl mode
# listen [::]:443 ssl; # for ipv6
# server_name hulamy.42.fr;
# ssl_certificate /etc/ssl/certs/hulamy.42.fr.crt; # specifies the file with the ssl certificate (self signed here) generated by openssl
# ssl_certificate_key /etc/ssl/private/hulamy.42.fr.key; # specifies the file with the secret key of the certificate
#
# root /var/www/html/; # contains default nginx index.nginx-debian.html
# index index.html index.htm index.nginx-debian.html index.php; # defines files that will be used as index (https://nginx.org/en/docs/http/ngx_http_index_module.html)
#
# location / {
# try_files $uri $uri/ =404; # from /etc/nginx/sites-enabled/default : First attempt to serve request as file, then as directory, then fall back to displaying a 404
# # for test
# root /data/wwws/;
# }
#}