Page 1 of 1

Baffled: Using my own domain to access Subsonic

PostPosted: Tue Aug 30, 2011 10:15 pm
by Jittery Jim
I've done some searching on this topic and have yet to find an answer or explanation that makes sense to me. As such I'm throwing out a cry for help.

I have enloe.me registered and have set-up a subdomain of music.enloe.me that I want to point to my Subsonic set-up. So rather than going to http://mightyjack.subsonic.org or my IP address http://98.145.93.210:500, I can use http://music.enloe.me and see my Subsonic login page and use the service there.

Possible? Easy? Help?

Many thanks in advance for any advice, suggestions, links, etc.

Re: Baffled: Using my own domain to access Subsonic

PostPosted: Wed Aug 31, 2011 12:08 pm
by bushman4
What operating system?

I can think of a way to do it in Windows...

Glenn

Re: Baffled: Using my own domain to access Subsonic

PostPosted: Wed Aug 31, 2011 3:57 pm
by Jittery Jim
Glenn,

My Subsonic server is running on Windows XP presently.

Thank you,

James

Re: Baffled: Using my own domain to access Subsonic

PostPosted: Wed Aug 31, 2011 4:41 pm
by carbonrough
.... would you not just add or change your 'A' record on your Hosts control panel to reflect your subdomain?

or am I way off the mark :D

Peace

K.

Re: Baffled: Using my own domain to access Subsonic

PostPosted: Wed Aug 31, 2011 5:13 pm
by bushman4
carbonrough wrote:.... would you not just add or change your 'A' record on your Hosts control panel to reflect your subdomain?


Well, you could do that, but then you would have to access the URL http://music.enloe.me:500, not http://music.enloe.me.

Unfortunately, the IIS that is included with XP professional does not have the ability to redirect.

So the only method I can see is to use Apache.

It would go something like this:
1. Open ports 500 and 80 on your router to point to the XP pro machine.
2. Set the A record for music.enloe.me to point to your external IP address (visible at http://www.whatismyip.org, but it sounds like it is 98.145.93.210)
3. Install Apache running on port 80.
4. Create a virtual site in Apache with the host header name of "music.enloe.me" and set it to redirect to http://98.145.93.210:500, or even better, set it to redirect to http://mightyjack.subsonic.org which will then redirect to the proper external IP address as it changes (and subsonic will manage that second redirect for you).

A little rube goldberg-esk, but it would work...

HTH,

Glenn

Re: Baffled: Using my own domain to access Subsonic

PostPosted: Wed Aug 31, 2011 5:17 pm
by Jittery Jim
bushman4 wrote:So the only method I can see is to use Apache.

It would go something like this:

[snip]

A little rube goldberg-esk, but it would work...

HTH,

Glenn


Thanks, Glenn. That sounds, well, like more work that it's worth.

I cheated. I made an index.html page and embedded an iframe that points to my Subsonic server. So, in effect, I can give out http://music.enloe.me and have my (few) users see the login page and Subsonic set-up. So far it seems to work ok.

Re: Baffled: Using my own domain to access Subsonic

PostPosted: Tue May 08, 2012 10:35 pm
by Revenant
Sorry for bumbing an old thread but I would like to figure out how to do this with Apache. I'm running WAMP and Subsonic on a Win7 machine with a private domain name pointing to that machine.

Create a virtual site in Apache with the host header name of "music.enloe.me" and set it to redirect to http://98.145.93.210:500, or even better, set it to redirect to http://mightyjack.subsonic.org which will then redirect to the proper external IP address as it changes (and subsonic will manage that second redirect for you).


Would this be similar to what you said?

Code: Select all
Listen 127.0.0.1:8080
<VirtualHost 127.0.0.1:8080>
ServerName subsonic.domainname.com
</VirtualHost>


Subsonic is running off port 8080 as apache is running off port 80.

Thanks.