ubuntu@ip-172-31-40-57:~$ sudo tail -f /var/log/nginx/error.log
2024/12/21 16:27:04 [error] 19476#19476: *28 open() “/home/ubuntu/stellarsgroup/static/static/admin/css/base.css” failed (2: No such file or directory), client: 103.178.143.42, server: _, request: “GET /static/admin/css/base.css HTTP/1.1”, host: “16.171.5.31”
2024/12/21 16:27:04 [error] 19476#19476: *28 open() “/home/ubuntu/stellarsgroup/static/static/admin/css/base.css” failed (2: No such file or directory), client: 103.178.143.42, server: _, request: “GET /static/admin/css/base.css HTTP/1.1”, host: “16.171.5.31”
this is my /etc/nginx/sites-available/stellarsgroup file
server {
listen 80;
server_name _;
location / {
proxy_pass http://unix:/run/gunicorn.sock;
include proxy_params;
}
location /static/ {
alias /home/ubuntu/stellarsgroup;
}
location /media/ {
root /home/ubuntu/stellarsgroup;
}
}