Hello, here is the conf file itself
server { listen 80; server_name #ip скрыл в целях безопасности; location /static/ { root /home/firstuser/firstproject; } location /media/ { root /home/firstuser/firstproject; } location / { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://unix:/home/firstuser/firstproject/firstproject/firstproject.socket; } } When you type in console, $ sudo service firstproject restart
>>> firstproject: unrecognized service
I use Ubuntu 12.04.5 LTS
The file is in the path /etc/nginx/conf.d with the name firstproject.conf