4 ms·
We found that Debian-packaged uWSGI is missing one param in uwsgi_params so you should use this instead: location / { uwsgi_pass <xxx>; inc
by wulczer 15y ago
We found that Debian-packaged uWSGI is missing one param in uwsgi_params so you should use this instead:
location / {
uwsgi_pass <xxx>;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
}
Without the UWSGI_SCHEME part, Django's Request.get_absolute_uri will return URIs starting with 'http' even if your site is served over HTTPS.