Tag Info

New answers tagged

0

Is not django problem at, but nginx proxy configuration The problem is quite similar to this one: (I paste link directly as it is an internal link on serverfault, don't want to duplicate answers) Removing port from nginx redirect Maybe even adding proxy_redirect off; to the location configuration does the trick.


0

I think the answer of what you are looking for is in proxy_redirect option, after proxy_pass. This nginx configuration sample can be useful: (Take a look on proxy redirect line) location /one/ { proxy_pass http://upstream:port/two/; proxy_redirect http://upstream:port/two/ /one/; I think adding this should do the trick: proxy_redirect ...


0

Because the directives after your location /rpc/ continue to be interpreted. You will find the following answer helful to your case. I suggest you to try with: server { listen 80; # Force HTTPS! server_name toontowninfinite.com; # Well, excluding the RPC server. (thanks chan!) location ^~ /rpc/ { ...


0

I got it working! Trick was to tell Django about the path with FORCE_SCRIPT_PATH as well and modify static paths. For me this solution is good enough as suburl is only configured in local settings for Django and in nginx.conf. Ubuntu 14.04 + Django 1.8 + uwsgi 1.9.17.1 + nginx 1.4.6 nginx.conf: server { listen 80; server_name 192.168.1.23 ...


0

Connection refused means that your gunicorn software isn't listening to the 8001 port you have configured in your nginx. You have to check your gunicorn configuration.


1

A ping every 10 seconds really isn't going to cause any performance issues. The AWS pings are probably sent directly from Amazon (Heroku is on the Amazon AWS marketplace, so it's probably hosted by them) to keep statistics on uptime/latency/etc. If someone was probing your box it would be followed up with more invasive scans.


1

Replace proxy_pass http://gfbu_app_server; With: proxy_pass http://gfbu_app_server/; This will not work with the if block. To not break Djangos autogenerated URL (remember: Django thinks it operates at the document root) you have to add the FORCE_SCRIPT_NAME variable to the settings.py e.g: FORCE_SCRIPT_NAME = "/webapps" Also check if you need to ...


2

nginx is complaining about this line: uwsgi_param HTTPS $https if_not_empty; The if_not_empty parameter was added in nginx 1.1.11, so your version of nginx is too old to use it. Since you are on CentOS, you should run the latest stable nginx provided by nginx.org's own CentOS repository. Updating to the latest stable nginx via this method ...



Top 50 recent answers are included