Fixed a few mistakes to run OC on a different server than localhost.