[mythtv-users] WebFrontend mod_proxy configuration

Anthony Giggins seven at seven.dorksville.net
Fri Sep 16 04:33:05 UTC 2016


On 22 August 2016 at 21:57, Stuart Auchterlonie <stuarta at squashedfrog.net>
wrote:

> On 04/08/16 01:45, Anthony Giggins wrote:
> > Having recently taken the plunge into 0.28 (it was rather painless
> > except for some libmyth dependancy issues during the initial upgrade)
> > does anyone have a working mod_proxy configuration for the new
> > WebFrontend (yes I know its not yet feature complete, just trying to get
> > ahead of the game)
> >
> > typically what I do is use mod_proxy on my external webserver to proxy
> > and authenticate mythweb connections to the internal mythweb server, I'm
> > hoping on doing the same for the webfrontend but its proving overly
> > difficult due to the numerous endpoints and all expecting to be relative
> > to /
> >
> > Below is what I do for mythweb
> >
> > ProxyPass /mythweb http://mythtv/mythweb
> > ProxyPassReverse /mythweb http://mythtv/mythweb
> >
> > which doesn't work for the WebFrontend
> >
> > ProxyPass /mythwebf http://mythtv:6544
> > ProxyPassReverse /mythwebf http://mythtv:6544
> >
>
> I've explored this a bit as well, and we are lacking
> proper support for the connection being proxied via an
> external webserver.
>
> Not to mention there is a websocket port which needs
> to be proxied as well. That one day may be merged with
> the main port, but it hasn't happened yet.
>
>
> Regards
> Stuart Auchterlonie
>
> it does seem to work if you use a separate virtualhost even if you
register a ddns.net account

<VirtualHost *:80>
    ServerAdmin root at blah.com
    ServerName hostname.ddns.net
    ErrorLog logs/hostname.ddns.net-error_log
    CustomLog logs/hostname.ddns.net-access_log common
    ProxyPass / http://mythtv:6544/
    ProxyPassReverse / http://mythtv:6544
</VirtualHost>

I had some success using a ProxyHTMLURLMap but the above works perfectly

ProxyPass /mythwebf/ http://mythtv:6544/
ProxyHTMLURLMap http://mythtv:6544/ /mythwebf/

<Location /mythwebf/>
        ProxyPassReverse /
        ProxyHTMLEnable On
        ProxyHTMLURLMap /       /mythwebf/
        ProxyHTMLExtended On
        RequestHeader    unset  Accept-Encoding
</Location>

I'm sure if someone knows enough about rewrite rules this would be pretty
easy to get going

Now if only someone would fix or rollback the change that broke HLS
streaming :(
http://www.gossamer-threads.com/lists/mythtv/users/600806

Cheers,

Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160916/8da4aeff/attachment.html>


More information about the mythtv-users mailing list