

Same as that of the default 404 page to the bucket. In addition, you must upload an object whose name is the If the bucket contains a directory named subdir/, you must upload the index.html object to the directory. Is the same as that of the default homepage to the bucket. That can preview the web page object of the corresponding format, the object contentĪfter you host a static website on a bucket, you must upload an object whose name When you use a custom domain name to access a static web page object by using a browser.When you use a browser to access an object, the object is downloaded as an attachment. Header is automatically added to the response: Content-Disposition:attachment. When you use the default OSS domain name to access a static web page object, the following.Whose name extension is HTM, HTML, JSP, PLG, HTX, or STM by using browsers: Take effect when you access static web page objects whose MIME type is text/html and
#STATIC WEBSITE EXAMPLES HOW TO#
For more information about how to configure the ACLs of objects, see Configure ACLs for objects.įor security reasons, from Septemfor regions in the Chinese mainland,Īnd Septemfor regions outside the Chinese mainland, the following limits (ACL) of the object that is specified as the default homepage or default 404 page

To allow anonymous users to access the object, you must set the access control list In the root directory of the bucket and allows anonymous access. The object that you specify as the default 404 page must be an object that is stored To access the static website that is hosted on an OSS bucket and a 404 error occurs,
#STATIC WEBSITE EXAMPLES CODE#
In the Visual Studio Code Explorer window, return to the Resources section and under Static Web Apps, right-click my-first-static-web-app and select Delete.When you configure static website hosting, you must specify the default homepage and If you're not going to continue to use this application, you can delete the Azure Static Web Apps instance through the extension. To view the website in the browser, right-click the project in the Static Web Apps extension, and select Browse Site.

Once the deployment is complete, you can navigate directly to your website.

Once the app is created, a confirmation notification is shown in Visual Studio Code.Īs the deployment is in progress, the Visual Studio Code extension reports the build status to you. Inside Visual Studio Code, select the Azure logo in the Activity Bar to open the Azure extensions window.
#STATIC WEBSITE EXAMPLES INSTALL#
