1👍
✅
Place the above code in nginx.conf
file which is located in /etc/nginx/
.Then your configuration file looks like this
nginx.conf
server {
listen localhost:8006;
location / {
proxy_pass http://127.0.0.1:8001;
}
location /static/ {
autoindex on;
alias /home/user/Desktop/projects/28-05-2014/HMS/static/;
}
}
1👍
Not enough information to answer.
Enable logging:
access_log /var/log/nginx/example.access.log;
error_log /var/log/nginx/example.error.log;
And look at what the log files says. If you cannot figure it out, please post the log outputs here. Question does not provide enough data. I ll update this answer as you update your question.
- [Answered ]-Dual Sortable table columns in django
- [Answered ]-Optional some special characters such as @, – or . in Django URL
- [Answered ]-Hosting an external CMS like WordPress on a Django powered site
- [Answered ]-Django activation custom email text does not appear
Source:stackexchange.com