You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
rewrite ^(.*)\.(\d+)\.(css|js)$ $1.$3 break; location ~* \.(jpg|jpeg|gif|png|svg|ico)$ { access_log off; expires max; log_not_found off; error_page 404 = /empty;
#location ~ ^/\d*.jpg$ { # default_type 'image/jpeg'; # content_by_lua_file image.lua; #} } #location ~ ^/\d*.html$ { # rewrite_by_lua_file redirect_to_product.lua; #} location = /empty { expires 0; empty_gif; } location ~* \.(eot|ttf|woff|pdf|css|js)$ { access_log off; expires max; } #location ~* \.(xml|xls)$ { # add_header Cache-Control "no-cache"; #} location ~ /\. { deny all; } location ~* \.(tpl|ini|sh) { deny all; }
|