Open duajanuari opened 10 years ago
Hello,
on my installation, sometimes it redirected to port 8080 when accessing http://mysite/wp-admin. I dont know why, but sometimes it redirect me to http://mysite:8080/wp-admin
it just quite annoying if we serve it at that port, but if somehow we need to disable varnish and use nginx at port 80 instead, it will give us error.
My fix is add:
port_in_redirect off;
at site configuration or even nginx.conf. I don't know whether it's a good idea or not, and why that happens.
If that's a good idea it seems we can add it to nginx.conf
Hello,
on my installation, sometimes it redirected to port 8080 when accessing http://mysite/wp-admin. I dont know why, but sometimes it redirect me to http://mysite:8080/wp-admin
it just quite annoying if we serve it at that port, but if somehow we need to disable varnish and use nginx at port 80 instead, it will give us error.
My fix is add:
port_in_redirect off;
at site configuration or even nginx.conf. I don't know whether it's a good idea or not, and why that happens.
If that's a good idea it seems we can add it to nginx.conf