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.html
That 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?

link|improve this question
feedback

1 Answer

I found the answer in a discussion on StackOverflow that referred to this solution.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.