nunosempere.com (3547B)
1 # Old config: 2 # server { 3 # 4 # 5 # listen 443 ssl; # managed by Certbot 6 # ssl_certificate /etc/letsencrypt/live/nunosempere.com/fullchain.pem; # managed by Certbot 7 # ssl_certificate_key /etc/letsencrypt/live/nunosempere.com/privkey.pem; # managed by Certbot 8 # include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot 9 # ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot 10 # # listen 80; 11 # # listen [::]:80; 12 # 13 # root /home/www/werc/werc-1.5.0/sites/nunosempere.com; 14 # index index.html index.htm index.nginx-debian.html; 15 # server_name nunosempere.com; 16 # 17 # location / { 18 # try_files $uri $uri/ =404; 19 # } 20 # } 21 22 server { 23 server_name nunosempere.com; # Replace with your domain name. 24 25 #charset utf-8; 26 27 #access_log logs/host.access.log main; 28 access_log /var/log/nginx/nunosempere.com.log; 29 # ^ delete line to make logs go back to normal 30 31 location / { 32 33 # FastCGI params, usually stored in fastcgi_params 34 # and imported with a command like the following: 35 #include fastcgi_params; 36 37 # Typical contents of fastcgi_params (inlined here): 38 fastcgi_pass localhost:9000; 39 40 fastcgi_param QUERY_STRING $query_string; 41 fastcgi_param REQUEST_METHOD $request_method; 42 fastcgi_param CONTENT_TYPE $content_type; 43 fastcgi_param CONTENT_LENGTH $content_length; 44 45 #fastcgi_param SCRIPT_FILENAME /var/www/werc/bin/werc.rc; 46 fastcgi_param SCRIPT_NAME /home/www/werc/werc-1.5.0/bin/werc.rc; 47 #fastcgi_param SCRIPT_NAME $fastcgi_script_name; 48 49 fastcgi_param REQUEST_URI $request_uri; 50 fastcgi_param DOCUMENT_URI $document_uri; 51 fastcgi_param DOCUMENT_ROOT $document_root; 52 fastcgi_param SERVER_PROTOCOL $server_protocol; 53 54 fastcgi_param GATEWAY_INTERFACE CGI/1.1; 55 fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 56 57 fastcgi_param REMOTE_ADDR $remote_addr; 58 fastcgi_param REMOTE_PORT $remote_port; 59 fastcgi_param SERVER_ADDR $server_addr; 60 fastcgi_param SERVER_PORT $server_port; 61 fastcgi_param SERVER_NAME $server_name; 62 fastcgi_param REMOTE_USER $remote_user; 63 64 #root /home/uriel/werc/werc-1.5.0/sites/nunosempere.com; 65 #root /var/www/werc/sites/$server_addr; # XXX This doesn't work, not sure why :( 66 #nuno: I confirm that the above doesn't work. 67 root /; 68 #root /home/www/werc/werc-1.5.0/sites/nunosempere.com; 69 70 #index index.html index.htm; 71 } 72 73 # listen 443 ssl; # managed by Certbot 74 # ssl_certificate /etc/letsencrypt/live/nunosempere.com/fullchain.pem; # managed by Certbot 75 # ssl_certificate_key /etc/letsencrypt/live/nunosempere.com/privkey.pem; # managed by Certbot 76 # include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot 77 # ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot 78 79 80 81 listen 443 ssl; # managed by Certbot 82 ssl_certificate /etc/letsencrypt/live/nunosempere.com/fullchain.pem; # managed by Certbot 83 ssl_certificate_key /etc/letsencrypt/live/nunosempere.com/privkey.pem; # managed by Certbot 84 include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot 85 ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot 86 87 } 88 89 server { 90 if ($host = nunosempere.com) { 91 return 301 https://$host$request_uri; 92 } # managed by Certbot 93 94 95 listen 80; 96 server_name nunosempere.com; 97 return 404; # managed by Certbot 98 99 100 }