以下を wp-config.php に追記
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define( 'VAULTPRESS_DISABLE_FIREWALL', true ); | |
if ( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { | |
$forwarded_ips = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ); | |
$_SERVER['REMOTE_ADDR'] = $forwarded_ips[0]; | |
unset( $forwarded_ips ); | |
} |
あと、リバースプロキシとは関係ないけど wp-admin を IP アドレス制限してるときは、以下の IP を許可してやる必要がある。
207.198.112.0/24
207.198.113.0/24
コメントを残す