docker-webserver-nginx/rootfs/etc/nginx/http.d/default.conf

46 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-12-13 09:00:45 +00:00
error_log /dev/stdout info;
access_log /dev/stdout;
server {
listen 80 default_server;
listen [::]:80 default_server;
2024-12-13 10:34:16 +00:00
root /data/www;
2024-12-13 09:00:45 +00:00
# server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
index index.html index.htm;
# autoindex on;
# autoindex_exact_size off;
# autoindex_format html;
# autoindex_localtime on;
}
2024-12-15 09:59:53 +00:00
error_page 404 /404.html;
2024-12-13 09:00:45 +00:00
location = /404.html {
2024-12-15 09:59:53 +00:00
internal;
2024-12-13 09:00:45 +00:00
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
gzip on;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js image/x-icon font/woff2 font/woff application/x-font-woff;
gzip_vary on;
gzip_disable "msie6";
etag on;
if_modified_since exact;
add_header Pragma "public";
add_header Cache-Control "max-age=31536000, public";
2024-12-15 09:59:53 +00:00
include /etc/nginx/custom.d/*.conf;
2024-12-13 09:00:45 +00:00
}