1234567891011121314151617181920212223242526272829303132 |
- server {
- root /var/www;
- index index.php index.html index.htm;
- server_name put.your.domain.here;
- location / {
- try_files $uri $uri/ =404;}
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;}
- location ~ /\.ht {
- deny all;}
- listen [::]:443 ssl ipv6only=on; # managed by Certbot
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/put.your.domain.here/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/put.your.domain.here/privkey.pem; # managed by Certbot
- include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
-
- }
- server {
- if ($host = put.your.domain.here) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
-
-
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name put.your.domain.here;
- return 404; # managed by Certbot
-
-
- }
|