SubSonic on Windows Server 2003

Need help? Post your questions here.

Moderator: moderators

SubSonic on Windows Server 2003

Postby rich0805 » Mon Jun 29, 2009 6:53 pm

I have Subsonic installed on W2k3 and it is running ok, apart from a couple of things.
I should also mention that IIS is running on the sever, hosting one other site, the default site disabled.

I need to run Subsonic on port 80 because my workplace blocks 8080. However, when I change the setting in Subsonic it wont start because it says that port is already in use. Well it is in IIS.

So, my question is, where to I tell (Apache I assume, but may be Jetty) to use a specific IP address (different to the one IIS is using) and enter a host header eg, www.mysubsonic.com for subsonic to use. I assume that once I have done this I will be OK to change it to port 80
rich0805
 
Posts: 11
Joined: Wed Jun 17, 2009 8:29 pm
Location: United Kingdom

Postby guitargurus » Mon Jun 29, 2009 7:19 pm

Subsonic standalone uses Jetty. I don't see it playing well in this environment. Good luck.
guitargurus
 
Posts: 32
Joined: Fri Apr 10, 2009 6:40 pm

Postby rich0805 » Mon Jun 29, 2009 7:23 pm

It "plays" just fine...on port 8080, all I want to do is change it to use port 80....a two minute job if it ran under IIS
rich0805
 
Posts: 11
Joined: Wed Jun 17, 2009 8:29 pm
Location: United Kingdom

Postby deriksen » Mon Jun 29, 2009 7:28 pm

Right click the subsonic service icon in tray an set the desired port. Restart service.
deriksen
 
Posts: 108
Joined: Mon Jan 19, 2009 7:31 am
Location: Kristiansand, Norway

Postby rich0805 » Mon Jun 29, 2009 7:58 pm

deriksen wrote:Right click the subsonic service icon in tray an set the desired port. Restart service.


That's the problem...I tried this to set it to port 80, but it wont restart, it says...."Address already in use, please change a port number".

I think this is caused by me already having an IIS site on the box that uses port 80.

If it was all in IIS then it would be easy to set up two sites using the same port number, and the same IP address, I wanted someone to talk me through how to do it in Jetty
rich0805
 
Posts: 11
Joined: Wed Jun 17, 2009 8:29 pm
Location: United Kingdom

Postby rich0805 » Mon Jun 29, 2009 8:21 pm

I might have cracked it....
I have created a site in IIS with www.mysubsonic.com as its host header on port 80

This has a default.hmtl page with the following in it
<html>
<frameset rows="0%,100%">
<frame src="">
<frame src="http://www.mysubsonic.com:8080">
</frameset>
</html>

As far as I can see this when I go to www.mysubsonic.com everything happens over port 80 (so work should be happy).

I'll let you know tomorrow
rich0805
 
Posts: 11
Joined: Wed Jun 17, 2009 8:29 pm
Location: United Kingdom

Postby deriksen » Mon Jun 29, 2009 8:28 pm

That's way too easy! :)
Let us know if work stops the traffic.
deriksen
 
Posts: 108
Joined: Mon Jan 19, 2009 7:31 am
Location: Kristiansand, Norway

Postby rich0805 » Tue Jun 30, 2009 7:25 pm

Yes, that was way too easy...and it was silly to think it would work :oops:

The code is rendered in the browser...so the browser ends up asking for my subsonic site on port 8080 and the firewall at work says no!

I have been doing some more research.
The problem is that you can't have two applications listening on the same port on the same IP. In theory I can have IIS listening on one IP http://support.microsoft.com/kb/813368/EN-US/ and if I could work out how to I could get Jetty to use another IP and the problem would be solved. However it is not that simple. I only have one public facing IP and my router only lets me forward port 80 for that IP to one internal IP (which makes sense).

So I am stuck for now....
rich0805
 
Posts: 11
Joined: Wed Jun 17, 2009 8:29 pm
Location: United Kingdom

Postby deriksen » Tue Jun 30, 2009 8:18 pm

Does work restrict all but port 80 traffic? That seems a bit overboard...
Tried some random port like 7777?

You might want to have a look here to change the Jetty port:
http://jetty.mortbay.org/jetty5/faq/faq_s_300-HTTP_t_port.html
deriksen
 
Posts: 108
Joined: Mon Jan 19, 2009 7:31 am
Location: Kristiansand, Norway

Postby rich0805 » Tue Jun 30, 2009 8:30 pm

It seems they block virtually everything except 80, opening ports as needed (and this doesn't count as a legitimate reason to open a port :D )
I'll have a look at the link you posted deriksen, but I don't hold out much hope :-(
rich0805
 
Posts: 11
Joined: Wed Jun 17, 2009 8:29 pm
Location: United Kingdom

Postby rich0805 » Tue Jun 30, 2009 8:34 pm

deriksen wrote:Does work restrict all but port 80 traffic? That seems a bit overboard...
Tried some random port like 7777?

You might want to have a look here to change the Jetty port:
http://jetty.mortbay.org/jetty5/faq/faq_s_300-HTTP_t_port.html


Presumably changing the port in Subsonic does the same thing. I have stopped IIS and changed Subsonic to port 80 and it worked fine. My real issue is finding a port open on the works firewall.
rich0805
 
Posts: 11
Joined: Wed Jun 17, 2009 8:29 pm
Location: United Kingdom

Postby deriksen » Tue Jun 30, 2009 9:51 pm

there are ways to sniff for open ports, but your firewall might just take it as a hostile attempt at brute force.

of course, you might ask your IT department for other open ports on which they will allow you to access your subsonic install. some business apps like citrix clients or maybe even ssl vpns might be in use by your company. perhaps you could cheat your way through the firewall by letting subsonic listen ports used by those. just a suggestion.
deriksen
 
Posts: 108
Joined: Mon Jan 19, 2009 7:31 am
Location: Kristiansand, Norway

Postby sindre_mehus » Wed Jul 01, 2009 6:04 am

I think most routers can be configured so that incoming port 80 is forwarded to, say, port 8080 on your server.

This site has lots of info on how to setup port forwarding on a variety of routers: http://portforward.com
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: SubSonic on Windows Server 2003

Postby jigsaw » Wed Jul 01, 2009 6:17 am

rich0805 wrote:I need to run Subsonic on port 80 because my workplace blocks 8080. However, when I change the setting in Subsonic it wont start because it says that port is already in use. Well it is in IIS.


Hi rich
What you need to do is setup a proxy through the IIS already running on the server. To get an idea of what that means you could read the post in the tutorial about how to do this in Apache http://forum.subsonic.org/forum/viewtopic.php?t=1569 ).
Apache has the module mod_proxy freely available. For IIS I found this by googling:
---
Proxying through IIS on Windows

Microsoft's IIS web server does not contain proxying capabilities built-in, but requires add-on products to provide this. You can find a number of commercial proxy servers for IIS, both from Microsoft and from other companies.

One of our customers has recommended a low cost product called ISAPI_Rewrite, which among other things provides proxy support. With it you can have IIS proxy to a ProjectForum site on a different, internal-only web server with only a single line configuration change.
---

There's however one free alternative, but you would have to decide whether you think it's a feasible solution for you: setup Apache on the server listening for all requests to port 80. Use mod_proxy configuration to separate requests for IIS, which would then have to listen to say 8081, and Subsonic on port 8080.

By doing this you could have a setup like this:
http://<yourdomain>/subsonic -> http://localhost:8080/subsonic
http://<yourdomain>/ -> http://localhost:8081/

all entry points into your system would be on port 80 so that your works firewalls shouldn't give you anymore trouble.

-jigsaw
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby SlyGuy77 » Tue May 17, 2011 6:27 pm

Well, I think I have a near solution for this.. I'm Running a WHS server (windows server 2003) and I didn't want to mess with IIS too much since WHS has a pretty cool service running on it to access your computers and files remotely.. Anyhoo.. I searched up and down the internet for a solution.. I checked out isapi_rewrite, but I couldn't for the life of me get it to work with IIS6.. I finally ended up with Helicon Ape.. It's the easiest solution I've found and if you know how to configure apache than you're golden, if not ( like me ) there's tones of info on the web..

So, Now I'm able to run the WHS site on port 80 and 443. And, using the same free domain name that came with WHS, I can also access uTorrent WebUI and subsonic, well, not really for subsonic, but I know it can work.. I just don't know how to fix it. I'm able to get to the login screen, I login but then I get a bad Gateway error.. It's really weird.. If anyone has any idea, I would really appreciate the help..

Here's my config.

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

<Location /subsonic>
ProxyPass http://127.0.0.1:8080/subsonic
ProxyPassreverse http://127.0.0.1:8080/subsonic
</Location>

From what I can tell, this exact configuration might be working just fine if I were using just Apache.. Maybe there's just something different with Ape that I am overlooking..

Thanks.
Sly.
SlyGuy77
 
Posts: 14
Joined: Mon Nov 29, 2010 4:32 pm

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 24 guests