Opened 13 years ago
Closed 13 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)
Change History (4)
Changed 13 years ago by
Attachment: | mythweb-proxy-https.diff.txt added |
---|
comment:1 Changed 13 years ago by
Owner: | set to Rob Smith |
---|---|
Status: | new → assigned |
Changed 13 years ago by
Attachment: | mythweb-proxy-https.diff added |
---|
lose the .txt extension so it looks like a patch
comment:2 Changed 13 years ago by
Resolution: | → Fixed |
---|---|
Status: | assigned → closed |
Fixed in master 79b92f6
Note: See
TracTickets for help on using
tickets.
patch to set rool_url correctly