I’m having an issue with a site not liking cached static content. In the common/locations.conf file, the line that’s giving me trouble is this one:
location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf)$ {
add_header "Access-Control-Allow-Origin" "*";
access_log off;
log_not_found off;
expires max;
}
If I get rid of it, my issues go away with this one site, but I don’t want to disable it for the other sites on the server.
Is there something I can put in a conf file under /var/www/example.com/conf/nginx/ that will overwrite this for just the one site?
Thanks very much!