Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 3 years ago

Closed 3 years ago

#9240 closed Patch - Bug Fix (Fixed)

Correctly set rool_url for mythweb when using web proxy

Reported by: stuarta Owned by: kormoc
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 stuarta 3 years ago.
patch to set rool_url correctly
mythweb-proxy-https.diff (634 bytes) - added by stuarta 3 years ago.
lose the .txt extension so it looks like a patch

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by stuarta

patch to set rool_url correctly

comment:1 Changed 3 years ago by stuarta

  • Owner set to kormoc
  • Status changed from new to assigned

Changed 3 years ago by stuarta

lose the .txt extension so it looks like a patch

comment:2 Changed 3 years ago by kormoc

  • Resolution set to Fixed
  • Status changed from assigned to closed

Fixed in master 79b92f6

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.