mirror of
https://github.com/voc/streaming-website
synced 2024-09-21 06:51:55 +00:00
Automatically set Base-URL when not on Localhost
This commit is contained in:
parent
3713d50799
commit
af10857ecd
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ date_default_timezone_set('Europe/Berlin');
|
|||
* Während der Entwicklung wird die BASEURL automatisch erraten
|
||||
* In Produktionssituationen sollte manuell eine konfiguriert werden um Überraschungen zu vermeiden
|
||||
*/
|
||||
//$GLOBALS['CONFIG']['BASEURL'] = 'http://foo.com/bar/';
|
||||
if($_SERVER['HTTP_HOST'] != 'localhost')
|
||||
$GLOBALS['CONFIG']['BASEURL'] = 'http://streaming.media.ccc.de/';
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue