Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- root /var/www/html;
- index index.php index.html index.htm index.nginx-debian.html;
- server_name eliseorobles.me www.eliseorobles.me;
- location / {
- try_files $uri $uri/ =404;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.0-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/eliseorobles.me/fullchain.pem; # manag ed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/eliseorobles.me/privkey.pem; # man aged 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 = www.eliseorobles.me) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- if ($host = eliseorobles.me) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name eliseorobles.me www.eliseorobles.me;
- return 404; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement