From 72f040e843a05ed3048ccdf76f74ad40edb5d7b7 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 13 May 2017 19:25:52 +0200 Subject: [PATCH] docs: add a note about HTTP proxy settings to FAQs --- docs/markdown/faqs.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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"; +``` -- 2.47.2