Using OSS to Publish a Static Website

Image for post
Image for post

By Alibaba Cloud Academy

Interested to learn more about Alibaba Cloud? Check out our course on Using OSS to Publish a Static Website in China and get certified today!

In this blog, we’ll talk about everything you need to host a static website. First, let’s talk about the differences between static websites and dynamic websites.

Static vs. Dynamic Websites

Dynamic websites use server-side languages, such as PHP or GSP, to dynamically build the website when a user visits the page. When a user goes to the web address, the server finds different pieces of information, writes it onto a single, cohesive page, and presents the final version on-screen. As the name suggests, compared to a static website, on a dynamic website, the content is generated dynamically and changes regularly. Along with using server-side languages, dynamic websites may generate different HTML for each request. The page contains a server-side code that allows the server to generate unique content when the page is loaded. When building a dynamic website, a content management system (CMS) is often used to save development time and take advantage of its rich plug-ins.

Building Your First Static Website

There is also another way to do it. You can use a web hosting service (or a service that supports web hosting) to upload your steady website. Then, you can leave the underlying O&M tasks to the service provider. You could use the Alibaba Cloud Elastic Compute Service (ECS) to get a cloud server and run an HTTP server service like Nginx on it. You could also use a web storage hosting service like Alibaba Cloud Object Storage Service (OSS).

We suggest using OSS because it supports web hosting. When comparing the O&M costs between OSS and ECS, OSS is more cost-effective. You can find the full guide by clicking here.

You could also consider creating a serverless static website, but we’ll leave that topic for another time. If you’re interested, you can learn more about it in this article.

Using OSS to Publish a Static Website in China

Ready to test your knowledge? Take the Using OSS to Publish a Static Website in China course and get certified today!

Original Source:

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store