FAQ  •  Register  •  Login

Reverse Proxy IIS

<<

cerothen

Streaming enthusiast

Posts: 20

Joined: Sat Dec 29, 2012 2:37 pm

Post Sun May 05, 2013 1:49 pm

Reverse Proxy IIS

Good Morning All,

I have recently decided to deploy Windows Server 2012 (standard) at home and have been working on getting most of the services that I had unique programs before using the build in functions. Either way IIS seems relativley unchanged from Win7 Prof so I have been trying to get the reverse proxy setup similar to the configurations for Sab, SB, & CP. I can connect to the mediabrowser link through "http://domainhere.ca/mediabrowser" but whenever I enter a password it gives the password error ("Unable to connect, please check your password and try again") and doesn't connect, I can however connect when direct (not through the forward on local LAN). I have enabled proxies in ARR and written in the URL Rewrite rule:

URL Rewrite Under "Default Site"
MatchURL
Requested URL: Matches the Pattern
Using: Regular Expressions
Pattern: mediabrowser(.*)
Ignore Case: Yes

Conditions: Default
Server Vars: Default

Action
Action Type: Rewrite
Rewrite URL: http://localhost:23424/{R:0}
Append: Yes
Log: No
Stop Proc Other Rules: Yes


Thanks for your help it is much appreciated,
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun May 05, 2013 1:51 pm

Re: Reverse Proxy IIS

you need to have a rule for /cds as well as /mediabrowser (/cds is the underlying API endpoint, mediabrowser is the webapp)
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

cerothen

Streaming enthusiast

Posts: 20

Joined: Sat Dec 29, 2012 2:37 pm

Post Mon May 06, 2013 1:11 am

[Solved] Re: Reverse Proxy IIS

That made it work. Much appreciated Will!
<<

williamray507

Serviio newbie

Posts: 1

Joined: Thu May 29, 2014 2:55 pm

Post Thu May 29, 2014 2:57 pm

Re: [Solved] Re: Reverse Proxy IIS

cerothen wrote:That made it work. Much appreciated Will!


Can you post your full config to get mediabrowser working?
<<

cerothen

Streaming enthusiast

Posts: 20

Joined: Sat Dec 29, 2012 2:37 pm

Post Fri Aug 08, 2014 7:08 pm

Re: [Solved] Re: Reverse Proxy IIS

williamray507 wrote:
cerothen wrote:That made it work. Much appreciated Will!


Can you post your full config to get mediabrowser working?


Hey Wulliamray507, not sure if you found my other post but I put a guide with my full config for reverse proxy through IIS. I have reposted it here for you:

Steps for Reverse Proxy IIS

1) Ensure IIS is enabled on your computer (control panel -> programs -> add remove windows features -> Internet info services)
2) Install web platform installer (http://www.microsoft.com/web/downloads/platform.aspx)
3) Open IIS (under administrative tools)
4) Under the entry of your computer name you will see an option for web platform installer (right at the end)
5) In web platform installer in the search type application routing and install the application routing request also install URL rewrite
6) Restart IIS
7) Enable Proxy (IIS -> Computer Node -> IIS (Section) -> Application Routing -> Server Proxy Settings (Sidebar) -> Check Enable Proxy)
8) Force SSL (Sites Node (Expand) -> <Your site> -> SSL Settings -> Require SSL) - [You might also want to ensure that you have bound this site to 443 and forwarded your router]
9) Create rewrite rules: (Sites Node (Expand) -> <Your site> -> URL Rewrite -> Add Rules -> Blank Inbound Rule)

RULE 1
URL Rewrite Under "Default Site"
MatchURL
Requested URL: Matches the Pattern
Using: Regular Expressions
Pattern: mediabrowser(.*)
Ignore Case: Yes

Conditions: Default
Server Vars: Default

Action
Action Type: Rewrite
Rewrite URL: http://localhost:23424/{R:0}
Append: Yes
Log: No
Stop Proc Other Rules: Yes

RULE 2
URL Rewrite Under "Default Site"
MatchURL
Requested URL: Matches the Pattern
Using: Regular Expressions
Pattern: cds(.*)
Ignore Case: Yes

Conditions: Default
Server Vars: Default

Action
Action Type: Rewrite
Rewrite URL: http://localhost:23424/{R:0}
Append: Yes
Log: No
Stop Proc Other Rules: Yes

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 36 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.