|
Hi everyone. I am trying to migrate my django app to a new server using the "Advanced Migration Guide" here: http://docs.webfaction.com/user-guide/moving.html?highlight=migration#migrating-servers I didn't seem to run into any problems, and made it to the part about "Testing your migrated applications." However, I cannot figure out how to successfully test them. I have edited my home computer's /etc/hosts file by specifying my destination server's IP address and my website domain name. When I then go to that URL, I get a "502 Bad Gateway". I'm sure I messed something up during the migration process, but I cannot figure out what it is because I can't seem to get a helpful error log for my requests. In ~/logs/user the error log only tells me the following:
Is there a way I can configure my app so I see the error after serving up that 502 Bad Gateway request? Thanks in advance. |
Hi,
Since you are getting a 502 error the most likely cause is that your application isn't running on the port that you were assigned in the control panel. Can you verify that and let me know?
Yep, that was it! I changed the port in my httpd.conf file and now my requests give me the regular useful error messages in my log files. Thanks!
You're very welcome! Glad I could help. :)