Opened 8 years ago

Closed 7 years ago

#9240 closed Patch - Bug Fix (Fixed)

Correctly set rool_url for mythweb when using web proxy

Reported by: Stuart Auchterlonie Owned by: Rob Smith
Priority: minor Milestone: 0.25
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

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 $_SERVERHTTP_X_FORWARDED_PROTO? == 'https'. and setting $_SERVERHTTPS? = 'on' in that case.

Stuart

Attachments (2)

mythweb-proxy-https.diff.txt (634 bytes) - added by Stuart Auchterlonie 8 years ago.
patch to set rool_url correctly
mythweb-proxy-https.diff (634 bytes) - added by Stuart Auchterlonie 8 years ago.
lose the .txt extension so it looks like a patch

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by Stuart Auchterlonie

patch to set rool_url correctly

comment:1 Changed 8 years ago by Stuart Auchterlonie

Owner: set to Rob Smith
Status: newassigned

Changed 8 years ago by Stuart Auchterlonie

Attachment: mythweb-proxy-https.diff added

lose the .txt extension so it looks like a patch

comment:2 Changed 7 years ago by Rob Smith

Resolution: Fixed
Status: assignedclosed

Fixed in master 79b92f6

Note: See TracTickets for help on using tickets.