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 _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx