mardi 2 août 2016

Nginx Kept Throwing 502 Bad Gateway

Nginx : nginx/1.11.2

I kept getting 502 Bad Gateway even after I update my nginx config.

location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_buffers 8 16k; <----
        fastcgi_buffer_size 32k;<----
        fastcgi_connect_timeout 300;<----
        fastcgi_send_timeout 300;<----
        fastcgi_read_timeout 300;<----
    }


I also did service nginx reload as well after modify and save the settings.


Did I missed anything else ?

Do I need to anything to my php.ini settings ?

Any hints / suggestions will mean a lot to me !



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire