I have a Wordpress site running in a Vagrant development environment. When I load up http://localhost:8080
, the site comes up fine, but as soon as I try to access the admin by going to http://localhost:8080/wp-admin
, I'm redirected to http://localhost/wp-admin/
.
Two things here:
- Nginx is forcing the trailing slash (which I'm not doing intentionally, afaik, but would be fine).
- In the trailing slash redirection, the port is getting lost (which is very much not fine).
I've tried adding the port_in_redirect
directive (using both values, to be honest) that I've seen in other answers to similar questions, but it changed nothing.
Any idea what I'm missing?