After much debate, I decided to dynamically create the index.html file and uploading it. It will quit if there's nothing to do with the domains.