Advertisement
tarkhil

WP config for unitd

Dec 19th, 2020
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. /* === https and remote_address === */
  2. if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) {
  3.     if ( 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ) {
  4.         $_SERVER['HTTPS'] = 'on';
  5.     }
  6. }
  7. if ( isset( $_SERVER['HTTP_X_REAL_IP'] ) ) {
  8.     $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_REAL_IP'];
  9. }
  10. /* === https and remote_address === */
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement