Getting www.customdomain.com/subsonic to work versus port

General discussions.

Moderator: moderators

Getting www.customdomain.com/subsonic to work versus port

Postby telijah » Tue Oct 08, 2013 7:07 pm

I asked this is Help and did not get very far.

I currently have SS running off my home server (IIS6 or 7, cant remember right now) and can get to it via www.telijah.com:8080 (not the actual domain, but will use it as an example), but would like to get that working just off a subdirectory with the hopes that IIS can deliver it, like www.telijah.com/subsonic. I have read others using a complicated method of proxying it through another server yada yada yada, but I cannot imagine there is no easier way with just some config tweaks in IIS, right? Changing the port to 80 will not work as I use port 80 for actual web pages. I basically just do not want to have to specify a port number when accessing it externally.
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Getting www.customdomain.com/subsonic to work versus por

Postby telijah » Fri Oct 11, 2013 11:06 pm

So apparently I should be able to do this with a simple url rewrite, but I'll be damned if I can figure it out. Anyone know the simple rule I would need? I would simply need

www.domain.com/subsonic

to rewrite to

www.domain.com:8081

Any help?
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Getting www.customdomain.com/subsonic to work versus por

Postby daneren2005 » Sat Oct 12, 2013 12:49 am

Google IIS Proxy Rewrite
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Getting www.customdomain.com/subsonic to work versus por

Postby telijah » Sat Oct 12, 2013 12:58 am

daneren2005 wrote:Google IIS Proxy Rewrite


I have, and yet I still have the problem, but just to make sure it is absolutely understood that I am not a complete moron, below is what I did accomplish so far

Code: Select all
        <rewrite>
            <rules>
                <rule name="SubSonic Rewrite" stopProcessing="true">
                    <match url="^subsonic" />
                    <action type="Rewrite" url="http://www.domain.com:8081" />
                </rule>
            </rules>
        </rewrite>


I just get 404 errors. I think it is simply because I do not know exactly how to get the match url string to work correctly.
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Getting www.customdomain.com/subsonic to work versus por

Postby telijah » Sat Oct 12, 2013 1:18 am

Well shit, I missed the App Routing part of IIS, so I added that, but the instructions are not the same I guess for 3.0, so I went further on my own, and it added a rewrite rule for me, which I then tried to tweak but still no go.

I am closer though. I have it now to match *subsonic* using wildcards, but then when I go to the site, I get a 404 but because it returns the url http://www.domain.com/login.view,
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Postby daneren2005 » Sat Oct 12, 2013 1:47 am

I have no idea where the config is on windows but in Linux I had to edit the start up option to specify the path to /subsonic. It should be in whatever config you also set the port and max mem usage, etc...

Sent from my HTC One X using Tapatalk 4
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Getting www.customdomain.com/subsonic to work versus por

Postby daneren2005 » Sat Oct 12, 2013 1:52 am

Also, the first result from googling is this: http://www.iis.net/learn/extensions/url ... st-routing.

Code: Select all
<rewrite>
<rules>
<rule name="Reverse Proxy to webmail" stopProcessing="true">
<match url="^webmail/(.*)" />
<action type="Rewrite" url="http://localhost:8081/{R:1}" />
</rule>
<rule name="Reverse Proxy to payroll" stopProcessing="true">
<match url="^payroll/(.*)" />
<action type="Rewrite" url="http://localhost:8082/{R:1}" />
</rule>
</rules>
</rewrite>


If you look at that, you will notce there is a big difference how the rewrites are written. You have the wild card match, but you are missing the rewrite portion (which is probably why it is redirecting to /login.view). Try including the {R:1} part. Although just adding the path to the subsonic config might do the trick. I literally know nothing about IIS ;)
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests