Report this

What is the reason for this report?

connection refused

Posted on October 30, 2019

This is the configuration file of nginx but I get connection refused error

server { charset UTF-8; listen 80; server_name my ip; root /var/www/language/videosapp; access_log /var/log/videosapp/nginx/access.log; error_log /var/log/videosapp/nginx/error.log; client_max_body_size 50M;

location /static { alias /var/www/videosapp/static; } location /media { alias /var/www/videosapp/media; } location /{ proxy_pass_header Server; proxy_set_header Host $http_host; proxy_redirect off; proxy_read_timeout 300; uwsgi_read_timeout 3600; proxy_connect_timeout 300; proxy_pass http://127.0.0.1:8000; proxy_set_header X-Forwarder-Host $server_name; proxy_set_header X-Real-IP $remote_addr; add_header P3P ‘CP=“ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV”’; } }

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.