SHARE
TWEET

Untitled

a guest Aug 10th, 2017 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80;
  3.  
  4.     server_name turtles.devel.kazuto.de;
  5.  
  6.     # enforce https
  7.     return 301 https://$host$request_uri;
  8. }
  9.  
  10. server {
  11.     listen 443 ssl;
  12.  
  13.     server_name turtles.devel.kazuto.de;
  14.  
  15.     root /var/www/kazuto.de/devel/htdocs/turtles/public;
  16.  
  17.     ssl_certificate /etc/letsencrypt/live/kazuto.de/fullchain.pem;
  18.     ssl_certificate_key /etc/letsencrypt/live/kazuto.de/privkey.pem;
  19.  
  20.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  21.     ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
  22.  
  23.  
  24.     index index.php index.html index.htm;
  25.  
  26.  
  27.     location / {
  28.         try_files $uri $uri/ =404;
  29.         #autoindex on;
  30.     }
  31.  
  32.     location ~ \.php$ {
  33.         include snippets/fastcgi-php.conf;
  34.         fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  35.     }
  36.  
  37.     location ~ /\.ht {
  38.         deny all;
  39.     }
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top