Opened 15 years ago
Closed 15 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)
by , 15 years ago
| Attachment: | mythweb-proxy-https.diff.txt added |
|---|
comment:1 by , 15 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
by , 15 years ago
| Attachment: | mythweb-proxy-https.diff added |
|---|
lose the .txt extension so it looks like a patch
Note:
See TracTickets
for help on using tickets.

patch to set rool_url correctly