only .json file not load using rewrite or internal redirection cycle while internally redirecting
rahulgupta20nov
nginx-forum at forum.nginx.org
Thu Apr 21 06:05:24 UTC 2016
Hi,
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:-
http://localhost/hello/language/locale-en-us.json
it should be redirect to
http://localhost/hello/some_path/www/language/locale-en-us.json
But it not redirect to mentioned path.
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266308,266308#msg-266308
More information about the nginx
mailing list