nginx
This commit is contained in:
@@ -11,18 +11,18 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(js|css|jpg|jpeg|png|gif|js|css|ico|swf)$ {
|
location ~* \.(js|css|jpg|jpeg|png|gif|js|css|ico|swf)$ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
etag off;
|
etag off;
|
||||||
if_modified_since off;
|
if_modified_since off;
|
||||||
add_header Cache-Control "public, no-transform";
|
add_header Cache-Control "public, no-transform";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
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