w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Nginx configuration:files alias

The issue with your location string is the ^ at the beginning of the regex. Your site routing is a little different than the example then the example the author was using in their blog; they were using static/ as the top level of their URL. You could remove the ^, or do something more specific like:

^(http:|https:)//(w+)/static/(w+)/([^/]+)_d+.(js|css)

Or if you know the top level folder will always be the same, then you could replace the first "(w+)" with the top level folder name. Depends on how exactly your server is set up.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.