I am trying to proxy pass in nginx. here is what the config looks like :
location /amazon {
proxy_pass http://amazon.com;
}
when I open domain.com/amazon it takes me to amazon.com/amazon. How should I write it so that is opens only amazon.com, without /amazon.