How to check which directive actually delivers the files?

atulhost nginx-forum at
Fri Jan 29 11:40:19 UTC 2016

To server static files from nginx use the below configs inside serverblock
of nginx,

location ~* \.(js|css|png|jpg|jpeg|gif|ico|eot|otf|ttf|woff)$ {
access_log off; log_not_found off; expires 30d;

and use symbol "|" without quote and extension name to add more static file
or extension types.


Posted at Nginx Forum:,264129,264206#msg-264206

More information about the nginx mailing list