How to serve specific static files with nginx?
Solution 1:
I don't see that you need a separate location
at all. A simple rewrite
should do.
For instance:
server {
rewrite /api/lang /server/i18n-angular/$arg_lang.json last;
I don't see that you need a separate location
at all. A simple rewrite
should do.
For instance:
server {
rewrite /api/lang /server/i18n-angular/$arg_lang.json last;