I would like to create a simple static web site on Azure Web Apps. I don't want any VS or PowerShell so I have just connected my Azure Web App to my OneDrive account. I just want to edit my local files and see them on site.
I have created new web app, connected it to my OneDrive account and this step was fine, it created apps/Azure Web Apps/""app name"" folder in my OneDrive so I have placed some html/css files there. Web App was synchronized; however, I could not open any html file (404 could not get resource index.html).
I FTP-ed site and I have found that there is a following element in my Web.Config file:
<rule name="StaticContent">
<action url="public{REQUEST_URI}" type="Rewrite"/>
</rule>
Ok, so by default it assumes that static content will be in "public" folder so I have created "public" folder in my OneDrive and moved html file there. I have opened html file on my site url via browser and it was shown successfully!!!
Now, I have copied some other html/css files in subfolders of my "public" folder, but I cannot open them. Http requests to ""site""/somefolder/file.html ""site""/somefolder/file.css returns 404.
It seems that StaticContent rule do not matches subfolders.
I can continue hacking this and modifying iisnode rewrite rules, but am I missing something?
I just want simple static site connected to my OneDrive or Dropbox account, no VS, no power shell, no customization. Is it possible that this is a minefield if you are using the simple use case? Is there some tutorial or setting that I have not found?