Host Static Website
Short answer
A paid Sirv account can host a static website: HTML pages with no forms or server code. Upload an index.html to any folder to make it that folder's landing page. Point your own domain at Sirv with a CNAME record, and Sirv adds a free SSL certificate. Upload by browser, FTP, S3, API or CSV.
After reading this you will know
- Which sites Sirv can host, and which plan you need
- How landing pages, your own domain and SSL work
- How to upload and update your site
You can use your Sirv account to host a static website. These are sites without forms, database lookups or scripts that need to communicate with a backend.
Static sites load extremely fast, because all assets can be served from Sirv’s highly-optimized CDN and the page has no dependencies on backend processes.
Follow the steps below to configure web pages on Sirv.
Choose a paid account
Section titled “Choose a paid account”To serve HTML pages from your Sirv account, you need a paid account. If you have a Free or Trial plan, upgrade to a paid plan here.
Landing pages
Section titled “Landing pages”Upload a file named index.html to a folder in your account and it will act as the landing page for that folder path. This also works for the root (home) folder of your Sirv account.
Configure your CNAME
Section titled “Configure your CNAME”This is optional but you’ll probably want your website to use your own domain name. To point a domain name at your Sirv account, configure a CNAME DNS record.
Follow the instructions to configure your CNAME. Your CNAME can point to any subdomain of your domain, such as www.my-website.com or static.my-website.com.
If you’d like to use your root domain my-website.com instead of a subdomain, that is also possible. CNAME records can only be created for subdomains.
So first configure a CNAME for a subdomain such as www. Then configure URL forwarding, to forward requests from https://my-website.com to https://www.my-website.com.
SSL certificate
Section titled “SSL certificate”Sirv automatically issues and renews an SSL certificate for each of your domains, so you don’t need to buy or configure any SSL certs.
Deployment
Section titled “Deployment”Upload your files to your Sirv account via any of the upload methods:
- Browser upload - the most popular way to drop files, folders or zips into your account at app.sirv.com
- FTP - convenient and easy
- S3 - secure alternative to FTP
- API - automate uploads however you need
- CSV - upload a list of files
