Discuz X3.4 -鍏ㄧ珯HTTPS - Aaron's Home -榛勬辰闆ㄤ釜浜哄崥瀹

璁板綍涓庡垎浜

Discuz X3.4 -鍏ㄧ珯HTTPS

Discuz!

 

馃憠 闂鎻忚堪 馃憟

Discuz!閮ㄥ垎椤甸潰鎻愮ず涓嶅畨鍏ㄧ殑HTTPS

 

 

馃憠 瑙e喅鎬濊矾 馃憟

鎵惧嚭鎵鏈夋病浣跨敤HTTPS鐨勬枃浠剁殑閾炬帴

 

 

馃憠 瑙e喅鍔炴硶 馃憟

鏌ユ壘淇敼鏂囦欢discuz_application.php

鈥 鎵惧埌 source/class/discuz/discuz_application.php (绾︾187琛屽)

$_G['isHTTPS'] = ($_SERVER['HTTPS'] && strtolower($_SERVER['HTTPS']) != 'off') ? true : false;

淇敼涓

$_G['isHTTPS'] = ($_SERVER['SERVER_PORT'] == 443 || $_SERVER['HTTPS'] && strtolower($_SERVER['HTTPS']) != 'off') ? true : false;

 

鏌ユ壘淇敼鏂囦欢avatar.php

鈥 鎵惧埌 uc_server/avatar.php (绾︾13琛屽)

define('UC_API', strtolower(($_SERVER['HTTPS'] == 'on' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));$_G['isHTTPS'] = ($_SERVER['HTTPS'] && strtolower($_SERVER['HTTPS']) != 'off') ? true : false;

淇敼涓

define('UC_API', strtolower(($_SERVER['SERVER_PORT'] == 443 || $_SERVER['HTTPS'] == 'on' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));$_G['isHTTPS'] = ($_SERVER['SERVER_PORT'] == 443 || $_SERVER['HTTPS'] && strtolower($_SERVER['HTTPS']) != 'off') ? true : false;

 

鏌ユ壘淇敼鏂囦欢admin.php

鈥 鎵惧埌 uc_server/admin.php聽(绾︾13琛屽)

define('UC_API', strtolower((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));

淇敼涓

define('UC_API', strtolower(($_SERVER['SERVER_PORT'] == 443 || $_SERVER['HTTPS'] == 'on' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));

 

淇敼鍚庡彴璁剧疆

鍚庡彴 >鍏ㄥ眬 > 绔欑偣 URL锛屾敼涓篐TTPS

鍚庡彴 > 绔欓暱 > UCenter 璁剧疆 > UCenter 璁块棶鍦板潃锛屾敼涓篐TTPS

UCenter 鍚庡彴 > 搴旂敤绠$悊 > 搴旂敤鐨勪富 URL锛屾敼涓篐TTPS

鈥 鍋氬埌杩欎竴姝ヨ繕鏈夐棶棰橈紝閫愭鎺掓煡妯℃澘銆佹暟鎹簱绛夊湴鏂

鍒嗕韩