Nginx ERR_TOO_MANY_REDIRECTS

Nginx ERR_TOO_MANY_REDIRECTS

이것은 내 구성 파일입니다.

server {
        listen 8080 default_server;

        server_name revistacariere.ro www.revistacariere.ro;

        return 301 https://revistacariere.ro$request_uri;
}

server {
    listen 443 ssl;

    server_name revistacariere.ro;

    ssl on;
    ssl_certificate /etc/letsencrypt/live/revistacariere.ro/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/revistacariere.ro/privkey.pem;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

    root /var/www/html/revistacariere;
    index index.php index.html index.html;    

    access_log /var/log/nginx/revistacariere_access.log;
    error_log /var/log/nginx/revistacariere_error.log error;

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

    location ~ "^(.+\.php)($|/)" {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "open_basedir=/var/www/html/revistacariere:/tmp";
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_buffers 16 16k;
        fastcgi_buffer_size 32k;
        fastcgi_pass 172.17.0.3:9000;
    }

    # Enable caching
    location ~*  \.(jpg|jpeg|png|gif|ico|svg|otf|ttf|woff|css|js)$ {
            expires 365d;
            try_files $uri @assets;
    }
    location @assets {
            rewrite ^ /index.php last;
    }

    # Settings
    client_max_body_size 8M;
}  

SSL 블록을 추가한 후 너무 많은 리디렉션 오류가 발생하며 그 이유를 알 수 없습니다. 도커 컨테이너 내부에서 실행되는 WP 웹 사이트입니다.

관련 정보