Custum domain name and subsonic

Need help? Post your questions here.

Moderator: moderators

Custum domain name and subsonic

Postby benzubi » Sat Feb 19, 2011 9:48 am

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
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby stozher » Sat Feb 19, 2011 10:35 am

Use frame redirect or subdomain with 80 port...
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby benzubi » Sat Feb 19, 2011 10:42 am

I googled your answer, I'm sorry I don't get it :?

Could you be more explicit?

Thanks!
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby stozher » Sat Feb 19, 2011 10:46 am

http://www.google.com/search?q=frame+redirect

... for subdomain example see my homepage and read howto for virtual hosts.
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby benzubi » Sat Feb 19, 2011 11:02 am

Yes Ive googled that, Im sorry but I aint no web expert and I dont get it :wink:
Thanks
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby stozher » Sat Feb 19, 2011 12:41 pm

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:
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby benzubi » Sat Feb 19, 2011 2:32 pm

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?
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby stozher » Sat Feb 19, 2011 4:08 pm

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/
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby benzubi » Sat Feb 19, 2011 4:57 pm

I did try to put 80 as default port in the subsonic config file but it is not working! :?
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby stozher » Sat Feb 19, 2011 6:43 pm

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
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby benzubi » Sun Feb 20, 2011 11:31 am

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?
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby benzubi » Sun Feb 20, 2011 12:58 pm

By the way it works fine if I use mysite:4040!
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby benzubi » Sun Feb 20, 2011 3:27 pm

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.
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby stozher » Mon Feb 21, 2011 10:39 am

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!
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby benzubi » Mon Feb 21, 2011 7:29 pm

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:
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 10 guests