소스 검색

Set SERVER_PORT to 80

Girish Ramakrishnan 7 년 전
부모
커밋
77a661e849
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      wp-config.php.template

+ 1 - 0
wp-config.php.template

@@ -57,6 +57,7 @@ define('WP_DEBUG_LOG', false);
 // If WordPress is behind reverse proxy which proxies https to http
 if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
     $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
+    $_SERVER['SERVER_PORT'] = '80'; // pretend apache is running on port 80. plugins like rsvp use this
 
     if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
         $_SERVER['HTTPS']='on';