NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 50 51 52 53 54 … 433 Next »
Advice on configuring Nginx reverse proxy

Advice on configuring Nginx reverse proxy
jroos
Offline

Junior Member

Posts: 8
Threads: 2
Joined: Jun 2018
#1
2018-07-06, 02:23 PM
Has anyone successfully configured an Nginx reverse proxy in front of the NextPVR web interface? Would you be willing to share your configuration? I'd even take a successful Apache config.

I have configured Nginx reverse proxies in front of many web services - even difficult ones. For the life of me, I can't get this to work.
jroos
Offline

Junior Member

Posts: 8
Threads: 2
Joined: Jun 2018
#2
2018-07-09, 08:12 PM
I have created an Nginx proxy reverse proxy configuration that partially works. I am able to login and browse around. Everything in the modern theme works. However, the admin pages accessed through admin.aspx and admin2.aspx are essentially non-functional.

What I've determined is the web server is sending an unsolicited "HTTP 100 Continue" response back to the proxy and that results in the POST data not finishing.

I am not up on ASP server operations, but this page seems to hint at the right direction: http://www.fallingcanbedeadly.com/posts/...cy-and-you

It also appears that this is not something that can be fixed or handled at the proxy: https://forum.nginx.org/read.php?2,241130,241139

Security is my primary motivation for running a proxy. I would like to implement GeoIP controls as well as HTTPS encrypted transport.
jroos
Offline

Junior Member

Posts: 8
Threads: 2
Joined: Jun 2018
#3
2018-07-12, 04:54 PM (This post was last modified: 2018-07-12, 05:00 PM by jroos.)
I now have a partially working Nginx reverse proxy config. I am able to log in and browse around and even stream in the modern interface. However, if I need to jump into the classic interface through admin.aspx or admin2.aspx, interactions with the interface elements fail.

I have determined that the failure is caused by the NextPVR web server responding to a POST request with a "HTTP 100 Continue" response. Nginx just quits the communication because it was not expecting a 100 response and doesn't know what to do next. It seems from my research that it is an unnecessary and inappropriate response when the client does not initiate it with an Expect header. However, it is the default way of operating for ASP application servers.

I am not familiar with ASP development, but it seems there is a way to disable 100 Continue responses. I have attempted to disable the response myself with no success. If we can disable this HTTP 100 response, I believe a fully functional Nginx reverse proxy is within reach. This is important to me because I want to encrypt communication as well as perform GeoIP blocking.

Searching for the terms below will result in the source pages where I learned this information. I had posted this once before with links, but it got lost in the moderation queue.

"Backend responding with 100 Continue results in the actual response being lost"
"HTTP 100 Continue, Latency, and You"
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#4
2018-07-12, 05:14 PM
Unfortunately I've got very little control over how the old classic web app behaves in this regard. I'm only really able to control this stuff with the modern app.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#5
2018-07-12, 05:16 PM
I just noticed your post #2 was marked as requiring moderation - sorry, didn't notice it was in that state when I'd read the post originally. I've marked it approved, so you should see it now.
jroos
Offline

Junior Member

Posts: 8
Threads: 2
Joined: Jun 2018
#6
2018-07-12, 06:12 PM
Some of my research indicates it's something that can be set globally on the server. Since it's not actually running IIS, I haven't been able to figure it out. I'm guessing it has to go in the code somewhere.

What web server is being used exactly?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#7
2018-07-12, 06:24 PM
It's actually just using System.Web.Hosting, which is web hosting components built into .NET. Depending on what you need to enable, it might be possible to set it in C:\Users\Public\NPVR\web\web.config. These are standard web config files used by IIS etc.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  New but not Noob. Advice for STB integration? ilovecoffee 17 4,557 2018-12-29, 05:54 PM
Last Post: Len_Lekx
  configuring using a file that is not a website kevincz 2 1,043 2018-02-23, 10:27 PM
Last Post: kevincz
  Recommendations on configuring my system RKCRLR 2 1,329 2018-01-05, 07:48 PM
Last Post: mvallevand
  NOOB Question: Base URL for Reverse Proxy? seanvree 7 2,793 2017-09-10, 06:37 AM
Last Post: seanvree
  Any advice for backing up NPVR settings before a clean re-install of Windows? tinstaafl 8 3,061 2016-12-12, 02:06 AM
Last Post: kirschey
  Advice for Argus TV user, looking to make the change. elsmandino 8 3,943 2016-12-07, 12:47 PM
Last Post: mvallevand
  Scheduling Advice elsmandino 7 2,408 2016-11-21, 10:54 PM
Last Post: sub
  Advice needed on changing tuner card and keeping all existing channel info Scobham 5 2,156 2016-04-02, 08:20 AM
Last Post: Scobham
  Trouble configuring and connecting NPVR to KODi Moorty 14 4,520 2015-09-17, 05:51 PM
Last Post: ACTCMS
  Configuring Delock 61959 V2 for DVB-C Ruuddb 10 4,507 2014-07-10, 06:41 AM
Last Post: Ruuddb

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode