Forums » Tutorial and setups »
Webroot setup for Ubuntu package (apache reverse proxy)
Added by nick cross almost 11 years ago
Hello, just installed the Ubuntu (stable) package and went about trying to get apache reverse proxy to work; the top google results told me its possible but are from an old git change and have the wrong command! When running the command manually the setting isn't saved in the config so won't take effect with the upstart file that will be used on reboot!
So to get ubuntu upstart/'service' with your desired webroot edit "/etc/init/tvheadend.conf"
ChangeARGS="-f"
ToARGS="-f --http_root /tv"
(/tv being my preference)
Then (re)start the service again and test your new webroot, to use your apache to proxy the requests create a reverse proxy to the tvheadend port (and your new webroot) so in my case:
<Location /tv>
order deny,allow
deny from all
allow from all
ProxyPass http://10.0.0.4:9981/tv
ProxyPassReverse http://10.0.0.4:9981/tv
</Location>
Could someone add something like this to the Wiki or perhaps tvheadend should have this variable in an easily accessed config file rather than the command line?
PS Sorry for terrible grammar i'm going to go pass out sick now..!
Replies (5)
RE: Webroot setup for Ubuntu package (apache reverse proxy) - Added by Adam Sutton almost 11 years ago
Please look at /etc/default/tvheadend. I added the feature specifically because I wanted (and still do) use it for this very reason.
Adam
RE: Webroot setup for Ubuntu package (apache reverse proxy) - Added by nick cross almost 11 years ago
Yes I found that eventually, sorry for my poor explanation; I was successful in getting the webroot to work and wanted people to be able to achieve the same quickly after installing the ubuntu package, the above is the steps I took.
Am I wrong or is this documented somewhere? I'd be happy to create a quick how-to with better instructions.
RE: Webroot setup for Ubuntu package (apache reverse proxy) - Added by Adam Sutton almost 11 years ago
No it's probably not well documented. Put together a short HOWTO and I'll add it to the wiki if you like.
Adam
RE: Webroot setup for Ubuntu package (apache reverse proxy) - Added by nick cross almost 11 years ago
Hopefully this is more succinct and formatting works.
Cheers,
Nick
serverconnexhowto.txt (4.19 KB) serverconnexhowto.txt | HowTo Configure server connectivity variables for wiki |
RE: Webroot setup for Ubuntu package (apache reverse proxy) - Added by Gary Brown almost 11 years ago
This solution works for me after removing my additional protections for logins.
<Location "/tv/">
Order deny,allow
deny from all
allow from all
ProxyPass http://127.0.0.1:9981/
</Location>
you only need ProxyPass and then you don't need the http_root set to anything