I have a Django application that works with a cannon. I followed the instructions here .
I have definitely included the correct location blocks:
location /static { alias /home/user/webapp; } location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
Be sure to include any template location alias.
I set up a known location block like this:
location /.well-known { alias /home/user/webapp/.well-known; }
By indicating that it directly does the root of the webapp instead of using allow all.
I needed to make sure that I used only the non ssl block before receiving the certificate, then I used a different nginx configuration based on h5bps nginx configs.
Note. Make sure you have the appropriate A records for the domain pointing to www if you intend to use h5bp to redirect to www.
source share