location ~ ^/Themes/[^/]+/Assets/ { # If the requested file is an asset, serve it directly if (-f $request_filename) { break; } } location / { try_files $uri $uri/ /index.php?$args; }