location ~* /wp-login\.php|/wp-admin/((?!admin-ajax\.php).)*$ { allow {接続元IP} allow {サーバーのGlobalIP}; allow 127.0.0.1; deny all; location ~ \.php$ { fastcgi_pass phpfpm; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; } index index.php index.html index.htm; try_files $uri $uri/ /index.php?$args; }