I used this template to setup a development VirtualBox VM using Vagrant. Chef orchestrated the installation of the server, which should server as my development machine for working on a Django project.
The setup includes a Gunicorn web server and Nginx as a reverse-proxy. Vagrant is configured to connect port 8080 to the VM's port 80, to which Nginx listens.
When I access my server using:
http://127.0.0.1:8080/I am served the index page.
The problem is that while using the website, from time to time when clicking links, I am transfered to a URL in the following scheme:
http://127.0.0.1/.../page.htmlThat is, without the 8080 port. This call obviously fails.
What could be the cause for this problem?
Is there something I need to change in the Nginx configuration?