N
N
Nubik2018-09-29 08:27:53
Nginx
Nubik, 2018-09-29 08:27:53

Why am I getting a redirect?

Why does the browser give an ERR_TOO_MANY_REDIRECTS error with this config?
The config is standard, practically nothing has changed.

server {
        listen 80 default_server;
        listen 127.0.0.1:80 default_server;
        root /var/www/html;
        index index.php index.html index.htm index.nginx-debian.html;
        server_name localhost;
        location / {
                try_files  / =404;
        }
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
        }
        location ~ /\.ht {
                deny all;
        }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question