Tag Info

New answers tagged

1

Remove http:// from server_name config New config will be something like this server { listen 80; server_name hg.rawdatatech.com; location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /static/ { alias /home/home-garden/staticfiles/; } }


1

I had the same issue with genericpath.py giving a UnicodeEncodeError when attempting to upload a file name with non ASCII characters. I was using nginx, uwsgi and django with python 2.7. Everything was working OK locally but not on the server Here are the steps I took 1. added to /etc/nginx/nginx.conf (did not fix the problem) http { charset utf-8; } ...


0

I guess the problem could be on the backend system, if any, more than the frontend (Nginx) stack. How many concurrent sessions your DB can handle (if any). One very common situation is that your request handlers enter a wait state with the backend system and starts queuing. Have you checked the backend system? 450 uses is not a big number itself but it ...


0

Your interactive terminal sessions is typically automatically populated with locale LC_ALL and language settings LC_LANG and LANG and many SSH clients will override the server defaults by forwarding those environment variables from your workstation. Often those are different from the system defaults, which get used when a daemon starts as a service from ...


0

Why do people put Nginx in the front? Nginx is an asynchronous web-sever. It means it doesn't dedicate a thread or a process per connection. Instead it uses OS' preferred socket polling library and thus is able to handle hundred thousands of connections. Why should you, as an application developer, care? Because Nginx buffers connections and only passes ...



Top 50 recent answers are included