Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* === https and remote_address === */
- if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) {
- if ( 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ) {
- $_SERVER['HTTPS'] = 'on';
- }
- }
- if ( isset( $_SERVER['HTTP_X_REAL_IP'] ) ) {
- $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_REAL_IP'];
- }
- /* === https and remote_address === */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement