Reverse Proxy on IIS

Need help? Post your questions here.

Moderator: moderators

Reverse Proxy on IIS

Postby bushman4 » Wed Jan 12, 2011 4:27 pm

Has anyone managed to set up SubSonic as a subdirectory in their already-running IIS site?

Historically, I have been able to do this using the ManagedFusion URL Rewriter library located here:
http://managedfusion.com/products/url-rewriter/

But I can't seem to get the rules right to handle SubSonic...

Anyone else have any sucess with something similar?

I am running this on a Windows Home Server, which is fairly dependent on IIS running properly...

If someone has tried, here are the rules I am trying that are working partially... I get the top pane and the JWPlayer pane, an incomplete right chat pane, and nothing in the Now Playing and Left Panes:

Code: Select all
# Proxy to SubSonic
RewriteRule   ^/subsonic$   /subsonic/   [R=301]
RewriteCond   %{HTTP_REFERER}   subsonic
RewriteCond   %{REQUEST_URI}   !(/?)subsonic/(.*)
RewriteRule   ^(/?)(.*)   /subsonic/$2 [R=301]

RewriteRule   ^/subsonic/(.*) http://localhost:8082/$1 [P,L]


Thanks in advance,

Glenn
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby GJ51 » Wed Jan 12, 2011 6:50 pm

I'm not able to tell you how to do what you're trying to do, but I can tell you that Subsonic will install and run just fine on WHS using the SS Windows installer. You do have to set it up using remote desktop connection, but it's much easier than what you're describing.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby bushman4 » Wed Jan 12, 2011 7:05 pm

Yes, but not on port 80. I am trying to enable access to subsonic on standard web ports, while still enabling the Home Server remote access features.

I have sucessfully redirected the uTorrent web interface (running on the WHS), xAP Switchboard (also on the WHS) and to my TivoWebPlus (running on a completely different IP address on my internal network...) to subdirectories of an IIS site running on a different host header on my WHS machine.

Just trying to limit the number of different port/address combinations I have to remember and diseminate... I'd love to be able to tell the wife and kids that it is just server.domain.com/subsonic.

Probably more work than worth it, but the geek in me says it should be possible... but without apache and ProxyPassReverse, it's much more difficult.

Thanks,

Glenn
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby GJ51 » Wed Jan 12, 2011 7:19 pm

Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby bushman4 » Wed Jan 12, 2011 7:27 pm

I do as well, but on some work networks, non-port 80 traffic is not allowed. Sindre is not really providing a proxying service, but more of a redirect service, so even though users hit the subsonic.org site on port 80, the redirected connection to my house is still on port 8082, and not universally accesible.

Again, I'm really just being a neat-freaked-geek here. It's one of those "I know it should work, so I'll bang my head until it does" kind of things... If no one has ever done it before, I'll just figure it out myself (and post a how-to when I'm done if anyone wants it).

Glenn
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby GJ51 » Wed Jan 12, 2011 7:40 pm

By all means, please give me an update when/if you solve it as I might be interested in implementing that kind of solution myself, as I too, have been known to emulate the Salmon from time to time. :lol:

Good Luck!
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby MaximumFish » Wed Apr 13, 2011 9:24 pm

I don't suppose you ever figured this out? I'm trying to do much the same thing on my server so that I can run an instance of ScreenConnect and one of Subsonic accessible from the same port, but using different hostnames rather than paths.
MaximumFish
 
Posts: 3
Joined: Thu Apr 15, 2010 11:06 am

Re: Reverse Proxy on IIS

Postby beorn » Mon Feb 11, 2013 1:52 pm

bushman4 wrote:Has anyone managed to set up SubSonic as a subdirectory in their already-running IIS site?


Hello,

sorry for pushing this topic, but it's driving me nuts! Is there someone who managed to setup Subsonic through IIS7 with ARR and could provide the ruleset (web.config)?
None of the tutorials and step-by-step guide worked so far. The Request-Routing seems to work somehow, because my requests is passed to the subconic-webserver, but this wants to redirect me to its login page, and this http 302-response is not handled by the ARR and i get a 404-file-not-found.

Any hints appreciated.
kind regards
beorn
beorn
 
Posts: 1
Joined: Mon Feb 11, 2013 1:30 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests