cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 admin - too many redirects

SOLVED

Re: Magento 2 admin - too many redirects

Hi friend, if you have done all this steps, then i sugest you check Firewall if is accepting HTTPS port.

Re: Magento 2 admin - too many redirects

add this to nginx config file

fastcgi_param  HTTPS "on";
fastcgi_param  HTTP_X_FORWARDED_PROTO "https";

so final code will look like this

# PHP entry point for main application
location ~ (index|get|static|report|404|503)\.php$ {
    try_files $uri =404;
    fastcgi_pass   fastcgi_backend;
    fastcgi_buffers 1024 4k;

    fastcgi_param  PHP_FLAG  "session.auto_start=off \n suhosin.session.cryptua=off";
    fastcgi_param  PHP_VALUE "memory_limit=768M \n max_execution_time=600";
    fastcgi_read_timeout 600s;
    fastcgi_connect_timeout 600s;

    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    fastcgi_param  HTTPS "on";
    fastcgi_param  HTTP_X_FORWARDED_PROTO "https";
    include        fastcgi_params;
}

Re: Magento 2 admin - too many redirects

Thank you so much for your hint regarding the fresh install returning a blank response.

I entered your commands and finally I could connect to the admin login screen.

Re: Magento 2 admin - too many redirects

If the database modifications don't fix the problem, the web server may be to blame. I fixed this problem by adding "fastcgi_param HTTPS on;" to my  nginx fastcgi_params configuration.