Apache 2.4.39
[.htaccess] Or [httpd.conf]
# 0.0.0.0にアクセス許可のIPを設定する # AWS ELB 用 管理画面アクセス制御 <location "/wp-admin"> # 管理用IP SetEnvIf X-Forwarded-For "0.0.0.0.*" allowed_ip_admin SetEnvIf X-Forwarded-For "0.0.0.0.*" allowed_ip_admin Order Deny,Allow Deny from all Allow from env=allowed_ip_admin </location>