nginx not serving static files on a public server
I am trying to deploy a django project using nginx and gunicorn. I followed this tutorial. Gunicorn is able to run my project but nginx is not serving static files. My nginx conf: server { listen 80; server_name 69.12.74.39; location / { proxy_pass http://0.0.0.0:8001; } location /static/ { autoindex on; alias /home/ekodev/accounts/arham/ekomerz/static/; } } I checked the location of my static folder and its right. The gunicorn command i am using is: gunicorn ekomerz.wsgi:application --bind=0.0.0.0:8001 EDIT: On my local machine it works fine. server { listen localhost:8000; location / { proxy
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.