itemprop = "text">
/ api / lang? There are queries like Lang = en
, which I want to serve with nginx as /server/i18n-angular/en.json
. How can I do this?
I have the following directory structure:
/ public / /server/i18n-angular/en.json
I have The following is the configuration, but NGNX states that it is wrong to use Index Directive at that time.
server {root / public ... location / API / lang {if ($ Args ~ * "\? Lang = (. +)") {Set $ language $ 1; Index ../server/i18n-angular/$language.json; }}}}
Which direction should I use instead of index
?
No comments:
Post a Comment