From: Jaroslav Kysela Date: Sat, 13 May 2017 17:25:52 +0000 (+0200) Subject: docs: add a note about HTTP proxy settings to FAQs X-Git-Tag: v4.2.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72f040e843a05ed3048ccdf76f74ad40edb5d7b7;p=thirdparty%2Ftvheadend.git docs: add a note about HTTP proxy settings to FAQs --- diff --git a/docs/markdown/faqs.md b/docs/markdown/faqs.md index 4e5b003a9..8ad830cc6 100644 --- a/docs/markdown/faqs.md +++ b/docs/markdown/faqs.md @@ -28,3 +28,24 @@ see if the block device files (i.e. the files used to communicate with the tuner The other major cause of this issue is when you're running Tvheadend as a user who doesn't have sufficient access to the tuners, such as not being a member of the *video* group. + +###Q: Access Tvheadend through HTTP proxy + +Use '--http_root' directive to specify the alternative http webroot (initial +path prefix). The proxy server *MUST* pass this webroot path in the HTTP +request, otherwise an access to the Tvheadend server will end with +the endless redirect loop. + +Example for nginx (--http_root=/my/tvh/server): + +``` +location /my/tvh/server { + proxy_pass http://1.1.1.1:9981; +} +``` + +Example for apache (--http_root=/my/tvh/server): + +``` +ProxyPass "/my/tvh/server" "http://1.1.1.9981/my/tvh/server"; +```