Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: url rewriting problem with location ~* ^.+.(jpg|jpeg|gif|...

$
0
0
You're missing a backslash.
So it will look like this:

location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|srt|txt|swf)$ {access_log off;expires 30d;}

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>