Rafael
Rafael

Reputation: 671

Publish Static Website Using Azure

I have a single html file (index.html) and an image that I tried to host on Azure.

I put them in a dropbox folder and synced, the website got published and Azure status shows running.

I go the webpage and it shows:

You do not have permission to view this directory or page.

Do I need to add anything to make the site work?

Upvotes: 0

Views: 151

Answers (1)

Bruce Chen
Bruce Chen

Reputation: 18465

You do not have permission to view this directory or page.

In general, when you access your web app : https://{webapp-name}.azurewebsites.net directly, you'd better make sure that the default documents you defined of your web app could be found within your web app. You could leverage KUDU or Azure App Service Editor to check whether your files exist.

@Dai No in Kudu I don't see the files...no index.html and my image file is there.

As I known, Azure would sync the changes (e.g add/remove file(s) in your DropBox deployment repository) and deploy the changes to your web app.

Note: When you delete file(s) synced from DropBox under your website folder(e.g D:\home\site\wwwroot\), the deleted file(s) couldn't be synced from DropBox in subsequent deployments. You could log into Azure Portal, choose your web app, select "APP DEVELOPMENT > Deployment options", check your deployment logs as follows to see the synchronization log.

According to your description, I assumed that you could log into Azure Portal, disconnect your deployment options and setup your DropBox deployment again. Also, you need to check the synchronization log mentioned above and check your files in your website folder via KUDU or Azure App Service Editor.

Upvotes: 1

Related Questions