Skip to content
Advertisement

Tag: nginx

Trouble getting started with Django Channels

I am creating my own application inspired from the Channels 2.0 tutorial. However, I am unable to establish WebSocket connection. Daphne complains for 404 saying the websocket URL can not be found. I am not sure where the error is. UPDATE: My Daphne is running behind an nginx server. The nginx config is updated as well: My directory structure is

Nginx is throwing an 403 Forbidden on Static Files

I have a django app, python 2.7 with gunicorn and nginx. Nginx is throwing a 403 Forbidden Error, if I try to view anything in my static folder @: nginx config(/etc/nginx/sites-enabled/myapp) contains: error.log contains: access.log contains I tried just viewing say a .css file in /static/ and it throws an error like this in source: Answer It appears the user

How do I debug a HTTP 502 error?

I have a Python Tornado server sitting behind a nginx frontend. Every now and then, but not every time, I get a 502 error. I look in the nginx access log and I see this: and in the error log: I don’t think any errors show up in the Tornado log. How would you go about debugging this? Is there

Advertisement