stupid
This commit is contained in:
@ -1,11 +1,3 @@
|
|||||||
# map $http_accept $webp_suffix {
|
|
||||||
# default "";
|
|
||||||
# "~*webp" ".webp";
|
|
||||||
# }
|
|
||||||
# types {
|
|
||||||
# image/webp webp;
|
|
||||||
# }
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
@ -14,26 +6,15 @@ server {
|
|||||||
#access_log /var/log/nginx/host.access.log main;
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
expires 1y;
|
|
||||||
etag off;
|
|
||||||
if_modified_since off;
|
|
||||||
add_header Cache-Control "public, no-transform";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# location ~* ^.+\.(png|jpg|jpeg)$ {
|
|
||||||
# add_header Vary Accept;
|
|
||||||
# try_files $uri$webp_suffix $uri =404;
|
|
||||||
# }
|
|
||||||
|
|
||||||
|
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
location = /404.html {
|
location = /404.html {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# redirect server error pages to the static page /50x.html
|
# redirect server error pages to the static page /50x.html
|
||||||
#
|
#
|
||||||
#error_page 500 502 503 504 /50x.html;
|
#error_page 500 502 503 504 /50x.html;
|
||||||
|
Reference in New Issue
Block a user