Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name eliseorobles.me www.eliseorobles.me;
- return 301 https://$server_name$request_uri;
- }
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- server_name eliseorobles.me www.eliseorobles.me;
- index index.php index.html index.htm index.nginx-debian.html;
- root /var/www/html;
- ssl_certificate /etc/letsencrypt/live/eliseorobles.me/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/eliseorobles.me/privkey.pem;
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
- include /etc/letsencrypt/options-ssl-nginx.conf;
- location ~ /\.ht {
- deny all;
- }
- location / {
- try_files $uri $uri/ =404;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement