Redirect /login to /

I have a wordpress site in which be default while accessing wp.geo.com
it
goes to login page wp.geo.com/login/ .

But what i need when i access wp.geo.com, in browser address bar it
should
display as wp.geo.com but inside server it should proxypass to
wp.geo.com/login.

We tried configuring nginx proxypass and redirect but its getting
redirect
loop.

Can any one please help to write the nginx configuration rule for this.

Thanks

location = / {
proxy_pass $scheme://$host/login;
}
?

B. R.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs