Page 1 of 2

Custum domain name and subsonic

PostPosted: Sat Feb 19, 2011 9:48 am
by benzubi
Hello guys

First I'd like to thanks for all the work done on subsonic, use it everyday now and it's great!

I do own a domain name and would like to use it to point to my subsonic but I don't know how to set up my apache. :shock:

I'm running subsonic 4.4 on port 4040 on a ubuntu server hosted by a provider and would like to be able to reach it bu pointing to domainname.com. The thing is that im runing stuff on for exemple domainenaame.com/siteweb/.

I have created a A record on my domain to point to my apache so now I can reach my subsonic by pointing to domainname.com:4040. Now I want domainname.com:4040 to point to domainname.com.

I know this have to do with my apache conf and virtual host but this is it :P

Thanks for your help.

Kind regards

ben

PostPosted: Sat Feb 19, 2011 10:35 am
by stozher
Use frame redirect or subdomain with 80 port...

PostPosted: Sat Feb 19, 2011 10:42 am
by benzubi
I googled your answer, I'm sorry I don't get it :?

Could you be more explicit?

Thanks!

PostPosted: Sat Feb 19, 2011 10:46 am
by stozher
http://www.google.com/search?q=frame+redirect

... for subdomain example see my homepage and read howto for virtual hosts.

PostPosted: Sat Feb 19, 2011 11:02 am
by benzubi
Yes Ive googled that, Im sorry but I aint no web expert and I dont get it :wink:
Thanks

PostPosted: Sat Feb 19, 2011 12:41 pm
by stozher
Sorry but if you like to administrate server you need to read and learn some documents...

Use port 80 and "domainname.com" will be work. :wink:

PostPosted: Sat Feb 19, 2011 2:32 pm
by benzubi
thanks I looked at what you said

So I ended up using this to redirect my subsonic to my domain

<meta http-equiv="refresh" content="0; url=http://mydomain.fr:4040" />

This doesn't do the job because I only have port 80 open at work, any idea?

PostPosted: Sat Feb 19, 2011 4:08 pm
by stozher
Change SS port to 80... I use 80 port for my server.

http://exampledomain.com/ = http://exampledomain.com:80/

Just for test: http://google.com:80/

PostPosted: Sat Feb 19, 2011 4:57 pm
by benzubi
I did try to put 80 as default port in the subsonic config file but it is not working! :?

PostPosted: Sat Feb 19, 2011 6:43 pm
by stozher
browser (user) high port <-> web page (server) 80 port

http://en.wikipedia.org/wiki/URL_redire ... _redirects

index.html file at server with open 80 port
Code: Select all
<frameset rows="100%">
  <frame src="http://www.example.com:4040/">
</frameset>
<noframes>
  <body>Please follow <a href="http://www.example.com:4040/">link</a>!</body>
</noframes>

http://www.w3.org/TR/html401/present/frames.html

PostPosted: Sun Feb 20, 2011 11:31 am
by benzubi
Edit : the redirection works fine but know I can't play any music from mysite.fr, playlist won't load and external player is not receiving any music.

any idea?

PostPosted: Sun Feb 20, 2011 12:58 pm
by benzubi
By the way it works fine if I use mysite:4040!

PostPosted: Sun Feb 20, 2011 3:27 pm
by benzubi
Code: Select all
<frameset rows="100%">
  <frame src="http://mysite.com:4040/">
</frameset>
<noframes>
  <body>Please follow <a href="http://mysite.com:4040/">link</a>!</body>
</noframes>


This redirection words perfectly, but after my subsonic won't play music.

PostPosted: Mon Feb 21, 2011 10:39 am
by stozher
Some OS and Apache server somewhere with DNS record redirected to other SS server not working with external players... at one server port 80 is open but at another don't...

Who is who and where? Sorry but I'm not a oracle! Post all information if you like help!

PostPosted: Mon Feb 21, 2011 7:29 pm
by benzubi
Hey stozher :)
Thanks you for your time one more time!

Ok so I'll try to explain the problem.

Context : I host my dedicated server running ubuntu at some hosting company.
I run subsonic on serverip:4040.
I own a domain name example.com, I created a A record on my DNS to reach subsonic on example.com:4040.
I can't run subsonic on port 80 because I have other stuff running, for example I have a web mail on example.com/webmail/.

I wanted subsonic to be at example.com so I used the following code in the index.html file hosted at /var/www (port 80).

Code: Select all
<frameset rows="100%">
  <frame src="http://example.com:4040/">
</frameset>
<noframes>
  <body>Please follow <a href="http://example.com:4040/">link</a>!</body>
</noframes>


The redirection works very well, I can reach subsonic at example.com, but subsonic doesn't work well now, links don't seem to work.

If I click on "Add all" to add stuff to the playlist it won't add any songs, If I click on "Play" or "Play all" it is the same thing, I can click as much as I want it won't add anything to the playlist or play anything, the links just seem inactive. If I use internal or external player it is the same thing.

BUT

If I reach myexample:4040 it works perfectly.

Cheers

Ben :wink: