Answer the question
In order to leave comments, you need to log in
FATAL Exited too quickly (process log may have details) ngins?
Good afternoon. I'm trying to remove the port from the url address on the hosting and set up statics. I do everything according to the lesson https://www.youtube.com/watch?v=mp4rwP7Ny_A&t=1141s .
But an error occurred when I checked with the sudo supervisorctl status command (I did update beforehand)
FATAL Exited too quickly (process log may have details)
bind = '<id хостинга>:8000'
workers = 2
timeout = 60
[program:tnmk]
command = /venv/bin/gunicorn tnmk.wsgi:application -c /tnmk/config/gunicorn.conf.py
directory = /tnmk
autorestart = true
redirect_stderr = true
stdout_logfile = /tnmk/logs/debug.logs
server {
listen 80;
server_name <id сервера>;
access_log /var/log/nginx/access.log;
location /static/ {
root /tnmk;
expires 30d;
}
location /media/ {
root /tnmk;
expires 30d;
}
location / { proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question