Resolver error Nginx: upstream sent too big header while reading response header from upstream

Resolver “[error] upstream sent too big header while reading response header from upstream” en NGINX.

Reemplazar en /etc/nginx/fastcgi.conf la configuración por defecto, en mi caso de EasyEngine con servidor web NGINX + fastcgi, los parametros de fastcgi_buffers y fastcgi_buffer_size.

# FastCGI cache settings
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:50m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503;
fastcgi_cache_valid 200 301 302 404 1h;
#fastcgi_buffers 16 16k;
#fastcgi_buffer_size 32k;
fastcgi_buffers 128 4096k;
fastcgi_buffer_size 4096k;
fastcgi_param SERVER_NAME $http_host;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
fastcgi_keep_conn on;

EasyEngine: WordPress Multisitios con PHP 7, Let’s Encrypt y Nginx cache

Requisitos (Debian):

apt-get install sudo

 

ERROR: El certificado de “raw.githubusercontent.com” no es confiable.

apt-get install ca-certificates

 

Instalar EasyEngine:

wget -qO ee rt.cx/ee && sudo bash ee # install easyengine

 

Desconectar sesión SSH y logear de nuevo:

exit

SSH root@mi-ip

 

Instalar Packages:

ee stack install

 

Crear:

PHP7 + MySQL + SSL Website:

ee site create example.com --php7 --mysql --letsencrypt

 

WordPress Multisitios en sub-directorios Nginx Fastcgi Cache PHP 7 + SSL

ee site create example.com --wpsubdir --wpfc --user=admin --pass=micontraseña --email=info@exemple.com --php7 --letsencrypt

 

Actualizar certificado SSL Let’s Encrypt

ee site update example.com --letsencrypt=renew

 

Eliminar sitio:

ee site delete example.com

 

Instalar Composer:

https://ebustos.com/linux/instalacion-global-de-composer-dependency-manager-para-php/

 

Instalar PhpMyAdmin:

ee stack install --phpmyadmin

cd /var/www/22222/htdocs/db/pma/
composer install --no-dev

 

Administrar PhpMyAdmin:

https://misitio.com:22222

 

Recuperar contraseña administrador EasyEngine:

ee secure --auth

 

Recuperar contraseña root MySQL:

cat /etc/mysql/conf.d/my.cnf

 

 

Consultar:

https://easyengine.io/

https://letsencrypt.org/

Instalar Virtualmin GPL y/o Webmin

Virtualmin:

Descargar: http://software.virtualmin.com/gpl/scripts/install.sh

chmod +x install.sh
./install.sh

http://www.webmin.com/vinstall.html

 

Webmin:

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.860_all.deb

dpkg --install webmin_1.860_all.deb

http://www.webmin.com/deb.html