I currently have nginx setup to serve content through Varnish. Nginx listens on port 8000 and varnish connects users' requests from 80 to 8000.
The problem is, on some occasions, particularly when trying to hit a directory, like site.com/2010
, nginx is redirecting the request to site.com:8000/2010/
.
How can I prevent this?