Folder permissions in Azure web sites

后端 未结 4 1863
温柔的废话
温柔的废话 2021-01-12 17:52

Just getting my head around the new Azure web sites feature and hitting my first obstacle. I\'m deploying a PHP site which writes cache data to the file system, but the app

4条回答
  •  执念已碎
    2021-01-12 18:40

    Your site can only write to locations under C:\DWASFiles\Sites\[siteName]\VirtualDirectory0 and to the %TEMP% folder.

    Two caveats here:

    1. Stuff can't be written directly under VirtualDirectory0, you have to create a subfolder under there and place your files in that subfolder
    2. The %TEMP% folder really is temporary! If your site instance goes down for any reason and is brought back up somewhere else then everything in your %TEMP% folder will be gone. Use it only for files that really are temporary.

提交回复
热议问题