View previous topic :: View next topic |
Author |
Message |
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Sun May 04, 2008 3:20 pm Post subject: <paths> in Windows? |
|
|
I have something like this in my config:
Code: |
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/" dest="/index.html"/>
<alias source="/mr1.aac.m3u" dest="/mr1.m3u"/>
<alias source="/mr1.mp3.m3u" dest="/mr1.m3u"/>
<alias source="/mr2.aac.m3u" dest="/mr2.m3u"/>
<alias source="/mr2.mp3.m3u" dest="/mr2.m3u"/>
<alias source="/mr3.aac.m3u" dest="/mr3.m3u"/>
<alias source="/mr3.mp3.m3u" dest="/mr3.m3u"/>
<alias source="/mr4.aac.m3u" dest="/mr4.m3u"/>
<alias source="/mr4.mp3.m3u" dest="/mr4.m3u"/>
<alias source="/mr5.aac.m3u" dest="/mr5.m3u"/>
<alias source="/mr5.mp3.m3u" dest="/mr5.m3u"/>
<alias source="/mr6d.mp3.m3u" dest="/vd.m3u"/>
<alias source="/mr6g.mp3.m3u" dest="/vg.m3u"/>
<alias source="/mr6m.mp3.m3u" dest="/vm.m3u"/>
<alias source="/mr6p.mp3.m3u" dest="/vp.m3u"/>
<alias source="/mr6s.mp3.m3u" dest="/vs.m3u"/>
</paths> |
However, I have multiple IceCast setups around, and would like to share things between.
Currently I can't seem to be able to do that because I need to copy everything to each IceCast installation folder\web directory.
I also have intro files defined, and these must be here too. This is a problem, especially because of version-handling and keep-cleaning.
I'd keep everything customized in a common (network) folder/drive, and use aliases from each installation.
I tried to specify like this:
Code: |
<alias source="/mr6p.mp3.m3u" dest="F:\m3us\vp.m3u"/> |
but that didn't work. Also this:
Code: |
<intro>F:\Intros\intro.mp3</intro> |
didn't seem to work.
I also would like to have something like this:
Code: |
<alias source="/test.html" dest="F:\html\test123.html"/> |
but I get an error 404 when I try to point at server:port/test.html
I know, in linux there are symlinks and stuff, but in Windows that's a pretty hard approach
Any suggestion? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun May 04, 2008 4:17 pm Post subject: |
|
|
How about defining the webroot to refer to your network drive (F), all other references to m3u/intro files will be appended to that. BTW Not that I've tried it but don't NTFS symbolic links work (mklink)?
karl. |
|
Back to top |
|
|
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Sun May 04, 2008 5:27 pm Post subject: |
|
|
karlH wrote: |
How about defining the webroot to refer to your network drive (F), all other references to m3u/intro files will be appended to that. |
What would happen then to the other files in the Icecast\web folder? They will not be accessible, while they are installation-specific. They shouldn't be messed up. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun May 04, 2008 7:21 pm Post subject: |
|
|
What other files? For intro files to be shared across multiple systems then share the webroot. xslt files are templates so they are not specific, everything in webroot is only required to be readable.
karl. |
|
Back to top |
|
|
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Mon May 05, 2008 9:24 am Post subject: |
|
|
karlH wrote: |
What other files? |
These are specific, and if I move the webroot alias, these will not be found (ech IceCast may be different version, so these must not be common):
admin.html
adminbar.html
auth.xsl
<DIR>images
index.html
server_version.xsl
status.xsl
status2.xsl
statusbar.html
style.css
style1.css
Shoutcast has a 'content' folder which can be specified in addition to webroot. Is it a possibility like this here? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon May 05, 2008 10:04 am Post subject: |
|
|
So you want to have a mixture of remote and local webroot files. I can only suggest using a symbol link (even on ntfs) to link to another directory that is on a shared drive.
karl. |
|
Back to top |
|
|
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Mon May 05, 2008 10:23 am Post subject: |
|
|
karlH wrote: |
So you want to have a mixture of remote and local webroot files. I can only suggest using a symbol link (even on ntfs) to link to another directory that is on a shared drive. |
Thanks. I'll try that. |
|
Back to top |
|
|
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Mon May 05, 2008 2:00 pm Post subject: |
|
|
robertut wrote: |
karlH wrote: |
So you want to have a mixture of remote and local webroot files. I can only suggest using a symbol link (even on ntfs) to link to another directory that is on a shared drive. |
Thanks. I'll try that. |
Ok, it seems to work, but unfortunately only Vista and Win2k8 support real symlinks. On WinXP and Win2k3 hardlinks can be used, but only on the same partition - thus linking among local and network drives is not possible.
Link Shell Extension is a nice tool that lets you easily create Hardlinks , Junctions , Volume Mountpoints , and Vista's Symbolic Links from within Windows Explorer, without having to use command prompt. |
|
Back to top |
|
|
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Mon May 05, 2008 2:04 pm Post subject: |
|
|
robertut wrote: |
Shoutcast has a 'content' folder which can be specified in addition to webroot. |
However I'd love to see something like that in IceCast too. |
|
Back to top |
|
|
|