I have a webapp built with Django. I'm currently running it off a laptop at home behind a router.
I have the router configured to route all traffic sent to a specific port to that laptop.
I have Nginx as a reverse proxy for Apache, using mod_wsgi to run Django.
My problem is this: when I try to submit any POST form, the port # gets removed from the url (e.g. 209.245.23.201:1552/login/ becomes 209.245.23.201/login/)
Naturally, this breaks. What causes this (Nginx, Apache, Django?) and how can I fix it?
Thanks in advance.
EDIT: It appears that the forms DO submit, but I think the redirect fails.
EDIT 2: The problem is definitely either with Nginx, or the interaction between Nginx and Apache. I tried the setup with Apache as the only server, running django, and it worked fine. So either Nginx is dropping the port, or somehow Apache is getting confused by Nginx acting as the proxy.whatever