My domain is: secure.schett.net
My web server is (include version): NGINX
The operating system my web server runs on is (include version): RHEL7
My hosting provider, if applicable, is: -
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
Config
server {
if ($host = secure.schett.net) {
return 301 https://$host$request_uri;
} # managed by Certbotlisten 80;
listen [::]:80;
server_name secure.schett.net;
return 301 https://$server_name$request_uri;}
server {
server_name secure.schett.net;
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/secure.schett.net/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/secure.schett.net/privkey.pem; # managed by Certbot
ssl_client_certificate /etc/letsencrypt/live/secure.schett.net/fullchain.pem;
ssl_session_cache shared:SSL:50m;
ssl_session_timeout 5m;
ssl_verify_client on;
ssl_verify_depth 2;include snippets/ssl-params.conf;
root /srv/www/secure.schett.net/public_web;
index index.php;
location / {
try_files $uri uri/ /index.html =404; autoindex on; } location ~ /.well-known { allow all; } location ~ \.php {
include /etc/nginx/fastcgi_params;fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}