To change the localhost to something else, you will have to change the properties to the right host in the file
ls-config.properties and make new certificates for the SSL layer of the CAS server. (See the README of the sources for more informations if it's not given in the install directory of the installeur.) (I can't remember if I put it in the Installer...)
Then launch the config.sh or config.bat script to change the setting in libresource.
That should solved your problem.
Let me know if you have any trouble...
Seb