Advertisement
Guest User

Untitled

a guest
Sep 6th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.86 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     listen [::]:80;
  4.  
  5.     server_name eliseorobles.me www.eliseorobles.me;
  6.  
  7.     return 301 https://$server_name$request_uri;
  8. }
  9.  
  10. server {
  11.     listen 443 ssl;
  12.     listen [::]:443 ssl;
  13.  
  14.     server_name eliseorobles.me www.eliseorobles.me;
  15.  
  16.     index index.php index.html index.htm index.nginx-debian.html;
  17.  
  18.     root /var/www/html;
  19.  
  20.     ssl_certificate /etc/letsencrypt/live/eliseorobles.me/fullchain.pem;
  21.     ssl_certificate_key /etc/letsencrypt/live/eliseorobles.me/privkey.pem;
  22.     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
  23.  
  24.     include /etc/letsencrypt/options-ssl-nginx.conf;
  25.  
  26.     location ~ /\.ht {
  27.         deny all;
  28.     }
  29.  
  30.     location / {
  31.         try_files $uri $uri/ =404;
  32.     }
  33.  
  34.     location ~ \.php$ {
  35.         include snippets/fastcgi-php.conf;
  36.         fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement