setup static dir, root, url