Report this

What is the reason for this report?

LetsEncrypt HTTPS error (With Laravel)

Posted on January 17, 2018

Hi,

My http works fine but if i try to run the site though the https i get this error (chrome)

This site can’t be reached MySite.co.uk refused to connect.

The following is my sites-available file:

server {
        listen 80;
        listen [::]:80;

        server_name MySite.co.uk www.MySite.co.uk;
        return 301 https://$server_name$request_uri;
}

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;

        include snippets/ssl-MySite.co.uk.conf;
        include snippets/ssl-params.conf;

        root /var/www/html/TheStephenB/public;

        index index.php index.html index.htm index.nginx-debian.html;

        server_name MySite.co.uk www.MySite.co.uk;

        location / {
                try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        }

        location ~ /\.ht {
                deny all;
        }

        location ~ /.well-known {
                allow all;
        }
}

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.