Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I Place status.xsl to it's own directory?
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Thu Oct 01, 2009 4:55 am    Post subject: How can I Place status.xsl to it's own directory? Reply with quote

Hello Karl and everybody else Smile

Can somebody please tell me, what should I do to place the file -which is generated from icecast- status.xsl, in it's own directory?
I suppose that is not just a cut+paste because it's automatically generated.

So to be able to restrict access and be viewed only from me (p.s.: this can be done, because I have already spoke with server people, which if that file is placed to it's own directory, the restriction can be done with a .htaccess file).

thank youuuuuu

Smile
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Fri Oct 02, 2009 6:03 pm    Post subject: Re: How can I Place status.xsl to it's own directory? Reply with quote

HELLLLLLLO! nobody????

Can be done or not? Please I need an answer and if there's no solution for that, please close the topic.

sonia


sonia wrote:
Hello Karl and everybody else Smile

Can somebody please tell me, what should I do to place the file -which is generated from icecast- status.xsl, in it's own directory?
I suppose that is not just a cut+paste because it's automatically generated.

So to be able to restrict access and be viewed only from me (p.s.: this can be done, because I have already spoke with server people, which if that file is placed to it's own directory, the restriction can be done with a .htaccess file).

thank youuuuuu

Smile

_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Oct 02, 2009 7:35 pm    Post subject: Reply with quote

the status.xsl is placed in it's own directory, it is called webroot. You can rename it or even apply auth in a mount defined for it. Maybe you need to be clearer on your intentions.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Sat Oct 03, 2009 3:16 am    Post subject: Reply with quote

karlH wrote:
the status.xsl is placed in it's own directory, it is called webroot. You can rename it or even apply auth in a mount defined for it. Maybe you need to be clearer on your intentions.

karl.


Hello Karl

my problem is that the page http://xx.xx.xx.xxx:8000/status.xsl is viewable from everybody in the internet!
I asked the support dprtmt of my server, what should I do so this page to be viewed and accessed by me and only.
Their answer was,"place this file in it's own directory where we can protect it with a .htaccess file."

So I need to tell me how can I do this.

Smile Smile Smile
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Oct 03, 2009 10:38 am    Post subject: Reply with quote

It seems that they are assuming that the web server will know what the internals of icecast will be. You cannot just copy a template from icecast to another application and assume the other application will fill it out i exactly the same way.

As I said before, If you want authentication for status.xsl then set it using a mount section for status.xsl just like you would for a stream.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Sat Oct 03, 2009 1:40 pm    Post subject: Reply with quote

karlH wrote:
It seems that they are assuming that the web server will know what the internals of icecast will be. You cannot just copy a template from icecast to another application and assume the other application will fill it out i exactly the same way.

As I said before, If you want authentication for status.xsl then set it using a mount section for status.xsl just like you would for a stream.

karl.



and can you give me an example, how can I do this??? Because at the Icecast.xml the only reference I see for status.xsl is the following:
<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Oct 03, 2009 4:58 pm    Post subject: Reply with quote

as I said, just like a mount for a stream, so

<mount>
<mount-name>/status.xsl</mount-name>
<authentication type="htpasswd">
<option name="filename" value="/path/to/myauth"/>
</authentication>
</mount>

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Sat Oct 03, 2009 8:12 pm    Post subject: Reply with quote

sorry for this, but as I have told in the past, I'm not a programmer and OK you say things that are so simple for you, but for me they look like a mountain!
and my question is: OK to mount.
OK somewhere in the icecast.xml.
But where?? I have all the following:
<fileserve>1</fileserve>

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/usr/var/log/icecast</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

Can you please tell me exactly where? and if any of the above should remain the same or change? Please if you can tell me exactly and step by step.

p.s.: and I must restart icecat after that, correct?
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Oct 04, 2009 1:13 am    Post subject: Reply with quote

It's not a programmer issue, don't read more into it. Just look the sample xml files and you will see how each <tag> block is nested. You'll see that <mount> blocks are under the <icecast> block, just as <paths> and <fileserve> are. The order is not important here, just make sure you only have one (mentioned above) matching status.xsl. You'll need to get icecast to reload the xml, the general way is to restart icecast. You should find that a simple insert of the block will suffice.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Sun Oct 04, 2009 11:36 am    Post subject: Reply with quote

thank you Very Happy thnk you Very Happy thank you Very Happy
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Mon Oct 05, 2009 3:24 am    Post subject: Reply with quote

Hello again Sad

(the server people did everything, as you told me)
I restarted Icecast and is not working.
still status.xsl is naked to the internet!

specifically:
<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>
<mount>
<mount-name>/status.xsl</mount-name>
<authentication type="../htpasswd">
<option name="filename" value="/home/icecast/.htpasswd"/>
</authentication>
</mount>
-->

any suggestions?
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Oct 05, 2009 4:01 am    Post subject: Reply with quote

The last line --> would tend to indicate that the xml entered is actually commented out, view it in firefox to see

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Mon Oct 05, 2009 5:58 am    Post subject: Reply with quote

karlH wrote:
The last line --> would tend to indicate that the xml entered is actually commented out, view it in firefox to see

karl.


So, it must be like this?
<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>
-->

<mount>
<mount-name>/status.xsl</mount-name>
<authentication type="../htpasswd">
<option name="filename" value="/home/icecast/.htpasswd"/>
</authentication>
</mount>

<fileserve>1</fileserve>

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast</basedir>
and all the rest...........
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Oct 05, 2009 12:50 pm    Post subject: Reply with quote

It needs to be uncommented yes, or else the rules of xml say it will be ignored. If you look at it in firefox then you will see it would be grey'd out. Obviously I cannot say whether it is valid xml just from a fragment

BTW what is this

<authentication type="../htpasswd">

if someone has told you that that they are wrong

<authentication type="htpasswd">

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Mon Oct 05, 2009 3:37 pm    Post subject: Reply with quote

karlH wrote:
It needs to be uncommented yes, or else the rules of xml say it will be ignored. If you look at it in firefox then you will see it would be grey'd out. Obviously I cannot say whether it is valid xml just from a fragment

BTW what is this

<authentication type="../htpasswd">

if someone has told you that that they are wrong

<authentication type="htpasswd">

karl.



When I look with the firefox this doesn't appear, not in grey, in no other color also!zip!

And that! As I told earlier, they made the xml for me, and also they created /home/xxxxx/.htpasswd
which is the password, that supposed will be asked from status.xsl, when somebody tries to access it!
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber