Set Custom Header in Nginx config and pass it to gunicorn
问题 I am trying to set a custom header in nginx and finally passing it to gunicorn server which runs the django application. After changing the nginx config file, I checked the request.META dictionary in django, but my custom header is missing. I believe nginx is not sending the header properly. This is my relevant nginx config file content. server { listen 443; server_name www.example.com; client_max_body_size 40M; ssl on; ssl_certificate /home/ubuntu/prodStuff/ssl/server.crt; ssl_certificate