Ticket #9240: mythweb-proxy-https.diff.txt

File mythweb-proxy-https.diff.txt, 634 bytes (added by Stuart Auchterlonie, 11 years ago)

patch to set rool_url correctly

Line 
1Index: includes/defines.php
2===================================================================
3--- includes/defines.php        (revision 27246)
4+++ includes/defines.php        (working copy)
5@@ -101,7 +101,7 @@
6     $_SERVER['HTTP_HOST'] = $host;
7     $_SERVER['HTTP_PORT'] = $port;
8
9-    if ($_SERVER['HTTP_PORT'] == '443' || $_SERVER['HTTP_PORT'] == '8443')
10+    if ($_SERVER['HTTP_PORT'] == '443' || $_SERVER['HTTP_PORT'] == '8443' || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
11         $_SERVER['HTTPS'] = 'on';
12
13     $root_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';