Nice one, but what if i want to reverse_proxy my API calls ? I mean, on the /fr/ version, my api call is translated to /fr/api/ instead of /api/, how can i handle this with nginx ?
Before i18n, my rule was :
location /api/ {
proxy_pass http://myapi.fr;
}
So i get no items from my api since the basehref is added before the request
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi
Nice one, but what if i want to reverse_proxy my API calls ? I mean, on the /fr/ version, my api call is translated to /fr/api/ instead of /api/, how can i handle this with nginx ?
Before i18n, my rule was :
So i get no items from my api since the basehref is added before the request