This is an old revision of the document!


Vue

server {
    listen 80;
    listen 443 ssl; # managed by Certbot
    server_name www.kalen.pw kalen.pw;
   access_log /var/log/nginx/access-SITENAME.log;
 
    root /web/kalen.pw;
    index index.php index.html;    
 
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    }
 
    error_page 404 /404.html;
    ssl_certificate /etc/letsencrypt/live/kalen.pw/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/kalen.pw/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
 
    #if ($scheme != "https") {
    #    return 301 https://$host$request_uri;
    #} # managed by Certbot
}