Have you configured SERVICE_URL and SERVER_ROOT correctly? You can find them in the Preferences of the admin panel.