only .json file not load using rewrite or internal redirection cycle while internally redirecting

rahulgupta20nov nginx-forum at
Thu Apr 21 06:05:24 UTC 2016

In nginx conf file I have written:-

    location /hello {
        alias /var/www/html/hello/some_path/www;
        try_files $uri $uri/ /helllo/some_path/www/index.html;

    location ~ /hello/(.*)\.(css|js|html|eot|svg|ttf|woff|ico|png|map|json)
        try_files $uri $uri/ /hello/some_path/www/$1.$2;

So when I request a json file eg:-

it should be redirect to 

But it not redirect to mentioned path.

Posted at Nginx Forum:,266308,266308#msg-266308

More information about the nginx mailing list