nginx_icon

WordPress + Elementor Multisite で Nginx 設定を最適化する

WordPress + Elementor Multisite でNginx の worker 設定を適切にすると 同時接続処理能力が大きく向上します。

WordPress Elementor Multisite 環境で Nginx を最適化

環境

  1. debian
  2. CPU 8コア
  3. RAM 約10GB
  4. PHP-FPM 8.4
  5. Nginx
  6. WordPress + Elementor
  7. Multisite

nginx.conf

nginxの設定ファイルは、inclde されていて、分割で設定されていることがあります。

一度に、設定ファイル全体を見るには、T オプションを使います。

				
					nginx -T | less
				
			

設定ファイル

				
					/etc/nginx/nginx.conf
				
			

nginx.conf の最初

				
					user www-data;
worker_processes auto;
worker_rlimit_nofile 200000;

events {
    worker_connections 4096;
    multi_accept on;
    use epoll;
}
				
			

nginx.conf http セクション

				
					http {

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;

    keepalive_timeout 30;
    keepalive_requests 1000;

    types_hash_max_size 4096;

}
				
			

WordPress + Elementor向けバッファ設定

				
					client_body_buffer_size 256k;
client_max_body_size 128m;

client_header_buffer_size 16k;
large_client_header_buffers 4 32k;
				
			

fastcgi最適化(WordPress重要)

				
					fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;

fastcgi_connect_timeout 60;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
				
			

nginx 再起動

				
					sudo nginx -t
sudo systemctl restart nginx
				
			
WordPress + Elementor Multisite で Nginx 設定を最適化する

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

関連コンテンツ

open ssl

ローカルCA Nginx テスト用

ローカル内のウエブサーバーNginxを簡単に暗号化して https 通信できるようにしたい。簡単な方法。

nginx

Nginxでhttp2

HTTP/2を導入する主なメリットは、ウェブページの読み込みを高速化によるウェブサイトの表示速度の向上です。

最近の投稿

WordPress + Elementor Multisite で Nginx 設定を最適化する