Hey All
Following on from successful closure of this issue: New Server, New IP address same Domain name , I can no longer access Django Admin application.
https://inkblotcreations.com/admin gives me “404 Not Found - nginx/1.10.0 (Ubuntu)”
Application worked prior to install of LE
I’m guessing that the redirection from HTTP to HTTPS is dropping the proxy_params (in first server block) . Does this mean that I have to replicate code from first server block to second (seems inefficient)? Or move it? Or something else?
Operating system: Ubutu 16.04
Web server: Nginx 1.10.0
Hosting provider: Digital Ocean
I can login to a root shell: Yes
Not using a control panel to manage my site.
Current version of Nginx configuration:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name inkblotcreations.com www.inkblotcreations.com 188.166.255.248;
return 301 https://$server_name$request_uri;
root /var/www/inkblotcreations;
location = /favicon.ico {
access_log off;
log_not_found off;
}
location /static/ { root /home/catz/src; }
location / {
include proxy_params;
proxy_pass http://unix:/home/catz/src/inkblot.sock;
}
location /.well-known/acme-challenge/ {
allow all;
}
}
server {
# SSL configuration
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
include snippets/ssl-inkblotcreations.com.conf;
include snippets/ssl-params.conf;
}