ANS Documentation

Improve This Doc
  • Cloud
    • eCloud VPC
    • eCloud Private
    • eCloud Public
    • eCloud Vault
      • Connecting to eCloud Vault
      • s3cmd
      • Basic s3website API usage
      • eCloud Vault Integration Documentation
      • Configuring cPanel Backups using the S3 Interface
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • Cloud >
  • eCloud Vault >
  • Basic s3website API usage

Basic s3website API usage¶

Warning

As with most of our Vault guides, we’re going to assume that you already have a working s3cmd environment

If you’re not using this method of authentication, you may need to specify additional flags/options in the commands used in this article.

You can host a static website on eCloud vault using the S3website interface.

Hosting a Static Website on eCloud Vault¶

Start by creating a bucket using the domain name you wish to use such as:

s3cmd mb s3://www.example.com

Now we can mark the bucket as a website bucket:

s3cmd ws-create --ws-index=index.html s3://www.example.com

Now you can upload your website including the index page:

s3cmd put --acl-public index.html s3://www.example.com/

You can test the web page is working by viewing the website

  browser> http://www.example.com.vault-website-man-5.ecloud.co.uk

Hosting a Static Website on eCloud Vault with a Custom domain name¶

In this section we discuss the DNS settings required to point your domain to the static website bucket created above.

Using your favourite DNS provider add a CNAME to the bucket name, in our example We added the below:

www.example.com.         300     IN      CNAME   www.example.com.vault-website-man-5.ecloud.co.uk

Next Article > eCloud Vault Integration Documentation

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ