[mythtv-commits] Ticket #9240: Correctly set rool_url for mythweb when using web proxy

MythTV mythtv at cvs.mythtv.org
Wed Nov 17 13:17:17 UTC 2010


#9240: Correctly set rool_url for mythweb when using web proxy
----------------------------------+-----------------------------------------
     Reporter:  stuarta           |       Owner:            
         Type:  Patch - Bug Fix   |      Status:  new       
     Priority:  minor             |   Milestone:  0.25      
    Component:  MythTV - General  |     Version:  Trunk Head
     Severity:  medium            |    Keywords:            
Ticket locked:  0                 |  
----------------------------------+-----------------------------------------
 This is an unusual use case but here goes.

 Client connects to webserver via https.

 Webserver proxies request to 2nd webserver
 via http (not https). In this situation
 mythweb was setting the root_url to http://..
 rather than https://... thus breaking the
 proxy and failing to load css for mythweb.

 Attached patch fixes the problem by checking for
 $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'.
 and setting $_SERVER['HTTPS'] = 'on' in that case.


 Stuart

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/9240>
MythTV <http://www.mythtv.org/>
MythTV Media Center


More information about the mythtv-commits mailing list