Redirect /login to /

B.R. reallfqq-nginx at yahoo.fr
Thu Apr 21 16:38:15 UTC 2016


location = / {
    proxy_pass $scheme://$host/login;
}
?
---
*B. R.*

On Thu, Apr 21, 2016 at 2:56 PM, Geo P.C. <pcgeopc at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160421/f5a2d15b/attachment.html>


More information about the nginx mailing list