а в nginx есть отсекающее правило на статику?
Вот полный конфиг
server {
listen 80;
server_name <site.com>;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
root /var/www/html;
location / {
try_files $uri $uri/;
}
location ~* ^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|svg|ttf|otf|woff|eot)$ {
access_log off;
expires 1d;
add_header Cache-Control public;
}
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
}
location ~/\.ht {
deny all;
}
#access_log /var/log/nginx/site.com_access.log combined gzip flush=10m;
#error_log /var/log/nginx/site.com_error.log error;
}