» Hosting Your Website on OneDrive
October 02, 2018 - 1 minute readWhat You Need to Begin
- Custom Domain
- Cloudflare Account
- Microsoft Account (OneDrive)
Steps
- You are going to want to point your Custom Domain’s Name Servers to the ones that Cloudflare provides, this may take several hours for Cloudflare to confirm
- In OneDrive create a folder at the top level directory using your Custom Domain name, this can be either www.[CUSTOMDOMAIN].com or [SUBDOMAIN].[CUSTOMDOMAIN].com
- Select the folder and give it the “Anyone with this link can view this item” permission, uncheck “Allow editing”, “Set expiration date”, and “Set password”
- Place your HTML/CSS/JS files in the newly created folder
- Sign into DriveToWeb using your Microsoft Account and accept the required permissions
- Under “Your web pages”, you will see your folder’s URL. If you click on the link you will be able to see your webpage
- Copy the [STRING] from the DriveToWeb URL (https://[STRING].tw/[CUSTOMDOMAIN].com/), you will need this to create Cloudflare DNS Records
- Sign into Cloudflare and click on the DNS section
- Create the following DNS Records (Use the records based on if you are using a Primary Domain or a Subdomain)
Primary Domain
CNAME www [STRING].drv.tw
TXT www DRVTW=[STRING].drv.tw
Subdomain
CNAME [SUBDOMAIN] [STRING].drv.tw
TXT [SUBDOMAIN] DRVTW=[STRING].drv.tw
You can confirm the DNS changes using G Suite Toolbox, check the CNAME and TXT records to confirm your changes propagated