Optimasi Nginx VestaCP

Tutorial cara optimasi Nginx VestaCP. Apabila Nginx proxy Apache sering error 500 atau timeout, lakukan settingan berikut:

Edit konfigurasi Nginx

nano /etc/nginx/nginx.conf

Temukan baris berikut, sesuaikan:

    client_header_timeout           1m;
    client_body_timeout             1m;
    client_header_buffer_size       32k;
    client_body_buffer_size         256k;
    client_max_body_size            256m;
    large_client_header_buffers     8 16k;
    send_timeout                    60s;

Simpan.

Restart Nginx

systemctl restart nginx

Selesai, semoga bermanfaat.

Add a comment