| View previous topic :: View next topic |
| Author |
Message |
stereotype
Joined: 06 Nov 2006 Posts: 36
|
Posted: Wed May 25, 2011 8:09 pm Post subject: Custom HTML serving when files not found... |
|
|
By default icecast serves the following HTML when files are not found:
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head><body><b>The file you requested could not be found</b>
</body></html>
I'd like to serve:
<HTML><META HTTP-EQUIV="refresh" CONTENT="0;URL=http://www.google.com/"></HTML>
So that nosy users stop fooling around and just get redirected to google or perhaps http://lmgtfy.com/?q=get+a+life
Is this possible? Do I have to dig through source code?
Thanks  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu May 26, 2011 1:08 am Post subject: |
|
|
It's true that there's no way to redefine the missing content without changing the source, I suppose it is something that could be added. The more immediate option to get it implemented is to edit the client.c file for client_send_404 and customise the page there.
karl. |
|
| Back to top |
|
 |
stereotype
Joined: 06 Nov 2006 Posts: 36
|
Posted: Thu May 26, 2011 4:43 pm Post subject: |
|
|
Thanks Karl  |
|
| Back to top |
|
 |
stereotype
Joined: 06 Nov 2006 Posts: 36
|
Posted: Thu May 26, 2011 7:27 pm Post subject: Nice... |
|
|
Worked like a charm  |
|
| Back to top |
|
 |
|