Fix include directive duplication in nginx.conf

This commit is contained in:
Max Schmidt 2023-10-24 10:26:58 +02:00
parent fe6e0368fc
commit f260c33f97

View File

@ -3,7 +3,7 @@ events {
}
http {
include mime.types;
default_type application/octet-stream;
gzip on;
gzip_vary on;
@ -18,6 +18,7 @@ http {
location / {
root /usr/share/nginx/html;
include mime.types;
try_files $uri $uri/ =404;
}
@ -27,6 +28,7 @@ http {
location ~* \.(jpg|jpeg|png|gif|ico|css|js|htm|html)$ {
root /usr/share/nginx/html;
include mime.types;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";