I want a URL like this:
https://hola.es/api/1/email/verify_email?token=asdf&username=stackoverflow
Become:
https://hola.es/email/verify_email?token=asdf&username=stackoverflow
Is it possible to do this using Nginx as a proxy?
I want a URL like this:
https://hola.es/api/1/email/verify_email?token=asdf&username=stackoverflow
Become:
https://hola.es/email/verify_email?token=asdf&username=stackoverflow
Is it possible to do this using Nginx as a proxy?
The configuration of your Nginx to mask the url would be the following, add the following lines:
# nginx configuration
location /api/email/ {
alias /email/;
}