skip to Main Content

Ubuntu – Nginx server doesn't load static css files

I'm trying to deploy my django site to ubuntu server nginx by following this tutorial (https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu). Deployment works, but css not working. I figured it's something with collectstatic but not sure. Funny enough css worked properly for 0.0.0.0:8000 port. This…

VIEW QUESTION

Nginx – App not starting with cryptic Passenger log error

I have a Rails app set up with Passenger + Nginx. When trying to access the app I get the following error in passenger's logs: /home/my_user/.rbenv/versions/3.3.1/bin/ruby: No such file or directory -- Passenger AppPreloader: /home/my_user/domains/my_domain/app/current (LoadError) However the file /home/my_user/.rbenv/versions/3.3.1/bin/ruby…

VIEW QUESTION

How can i get the hostname of incoming url in nginx while using regex in server_name?

server { listen 80; listen 443 ssl; server_name ~^(?<custom_domain>[^.]+).; ssl_certificate /var/www/faqnation-server/issued_certs/${custom_domain}__issued_cert.pem; ssl_certificate_key /var/www/faqnation-server/issued_certs/${custom_domain}__issued_cert.key; location / { proxy_pass http://127.0.0.1:4178; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } This is my nginx configuration block, i have used regex ~^(?<custom_domain>[^.]+).…

VIEW QUESTION
Back To Top
Search