背景:
同事有这样一个需求:他需要在Windows azurepack 的website云中创建一个网站,不需要.net\php等,只放一些静态的HTML效果图,并且需要网站支持中文
解决方案:
在网站根目录创建一个web.config,并添加如下代码:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <defaultDocument> <files> <add value="index.aspx" /> </files> </defaultDocument> <directoryBrowse enabled="true" /> </system.webServer> </configuration>