Knowledge Base
Custom hostnames instead of IP addresses in self-referencing links
Jul 24, 2008 03:24 PM
Question:
When I click the "Server Administration" link in the Centova Cast user control panel, I see my server's IP address in the URL bar instead of a hostname. This is also true of the .pls files generated by Centova Cast's "Tune In" links. Can I use a custom hostname instead?Answer:
Yes, as of v2.2.0 this is configurable in /home/centovacast/system/config.php. There are two ways to configure this:- If you want the self-referencing links to use the individual hostnames you've entered in the configuration for each stream, look for:
define('SELFREF_HOSTNAME',false);
...and change false to true.
Note that THIS WILL BREAK YOUR STREAMS if you failed to specify a hostname for any of your streams, and/or if that hostname is not configured in DNS to point to the correct IP address of the stream. If you do not fully understand how DNS works, it is advisable to avoid modifying this setting. - If you want all streams to use the same, custom hostname, look for:
define('SELFREF_OVERRIDE','');
...and specify your own custom hostname here. For example, to have all self-referencing links point to foo.example.com, you might use:
define('SELFREF_OVERRIDE','foo.example.com');
Again, note that THIS WILL BREAK YOUR STREAMS if the hostname you specify here is not configured in DNS to point to the correct IP address for your streams. If you do not fully understand how DNS works, it is advisable to avoid modifying this setting.








