Question
connection refused
This is the configuration file of nginx but I get connection refused error
server {
charset UTF-8;
listen 80;
servername my ip;
root /var/www/language/videosapp;
accesslog /var/log/videosapp/nginx/access.log;
errorlog /var/log/videosapp/nginx/error.log;
clientmaxbodysize 50M;
location /static {
alias /var/www/videosapp/static;
}
location /media {
alias /var/www/videosapp/media;
}
location /{
proxypassheader Server;
proxysetheader Host $httphost;
proxyredirect off;
proxyreadtimeout 300;
uwsgireadtimeout 3600;
proxyconnecttimeout 300;
proxypass http://127.0.0.1:8000;
proxysetheader X-Forwarder-Host $servername;
proxysetheader X-Real-IP $remoteaddr;
addheader P3P ‘CP=“ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV”’;
}
}
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×