HTTP 错误 413.1 - Request Entity Too Large 未显示页面,因为请求实体过大
上传文件太大。解决方法,在网站主目录下新建web.config,并添加如下内容(最大2GB=2147483648):
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="2147483648" /> </requestFiltering> </security> </system.webServer> </configuration>
如果是PHP,还要修改php.ini:
upload_max_filesize = 2048M post_max_size = 2048M