Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[WordPress] [VaultPress] リバプロ環境下で使う場合、以下を wp-config.php に追加
<?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 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment