Ok, so I need to write the site.url in the config. I assumed it would be automagical.