Sorry, I know it’s too late but I found an easy way to solve this problem.
Just copy HMWP rules inside those blocks. For example:
location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|woff|xla|xls|xlsx|xlt|xlw|zip)$ {
#Another Copy of HMWP RULES HERE
expires 31536000s;
add_header Pragma "public";
add_header Cache-Control "max-age=31536000, public";
}
In fact, you need three copy of HMWP rules. A sample file for those specific problems has been attached.
Attachments:
You must be
logged in to view attached files.