Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SergioGregorutti's avatar

SSL (LetsEncrypt) - This site can’t be reached / Loop

Hi all,

I tried to add the SSL to my site using the LetsEncrypt option on Forge. I installed it and there were no errors. I can see the certificate installed and activated.

But now my site is not working, I get a "This site can’t be reached. mundohurlingham.com redirected you too many times." error.

Using this tool it seems like there's a loop problem: https://check-your-website.server-daten.de/?q=mundohurlingham.com

But I'm not sure what I need to do because I don't understand how to configure the server.

This is my Nginx configuration file:

# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/mundohurlingham.com/before/*;

server {
    listen       80;
    server_name  mundohurlingham.com;
    return       301 http://www.mundohurlingham.com$request_uri;
}

server {
    listen 443 ssl;
    server_name www.mundohurlingham.com;
    root /home/forge/mundohurlingham.com/public;

    # FORGE SSL (DO NOT REMOVE!)
    ssl_certificate /etc/nginx/ssl/mundohurlingham.com/471223/server.crt;
    ssl_certificate_key /etc/nginx/ssl/mundohurlingham.com/471223/server.key;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

    index index.html index.htm index.php;
    
    if ($request_uri ~* "^(.*/)index\.php(/?)(.*)") { return 301 ; }

    charset utf-8;

    # FORGE CONFIG (DOT NOT REMOVE!)
    include forge-conf/mundohurlingham.com/server/*;

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

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log off;
    error_log  /var/log/nginx/mundohurlingham.com-error.log error;

    error_page 404 /index.php;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }
}

# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/mundohurlingham.com/after/*;

By the way, I remember that I made a change a long time ago to redirect the site from http://mundohurlingham.com to http://www.mundohurlingham.com (force to use the "www") That's why I have two servers. Maybe it's something related to this?

Any ideas about how to fix this issue?

Thanks, Sergio.

0 likes
2 replies
SergioGregorutti's avatar

I'm still dealing with this issue.

Could it be an application issue? I'm using Laravel 5.2

Please or to participate in this conversation.