在IIS8.5中设置MaxWebConfigFileSizeInKB [英] Setting MaxWebConfigFileSizeInKB in IIS8.5

查看:322
本文介绍了在IIS8.5中设置MaxWebConfigFileSizeInKB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个web.config文件,它引用了内置的IIS Rewrite模块使用的rewrites.config文件。但是我的rewrites.config文件大于250kb,所以我按照这个建议帖子。但是,似乎在IIS 8.5(Windows Server 2012)中忽略了这些键。我搜索了互联网,但在IIS 8.5上找不到多少,有人对如何增加maximum.config大小有任何建议吗?或者将rewrites.config拆分成较小的文件?

I have a web.config file that references a rewrites.config file that is used by the inbuilt IIS Rewrite module. However my rewrites.config file is larger than 250kb, so i have followed the advise on this post. However it appears that in IIS 8.5 (Windows Server 2012) these keys are ignored. I've search the interwebs and haven't been able to find much on IIS 8.5, anyone got any advice on how to increased the maximum.config size? Or alternatively split rewrites.config into smaller files?

推荐答案

您可以创建

右键单击REGEDIT中的父节点 - 添加一个名为 Configuration 的新 。然后为 MaxWebConfigFileSizeInKB 添加一个新的 DWORD (您可能希望切换到十进制视图)并将值设置为KB。

Right click on the parent node in REGEDIT - add a new Key called Configuration. Then add a new DWORD for MaxWebConfigFileSizeInKB (you'll probably want to switch to the decimal view) and set the value in KB.

我刚刚在Windows Server 2012上运行IIS8.0的服务器上测试了一个大小为753kb的rewritemap.config文件(我在此假设这与IIS不会有太大的不同) 8.5)。您需要根据是64位还是32位来设置相应的密钥(请参阅此处)。如有疑问则同时设置。我可以确认正在使用此值,因为将值降低到(例如)10会再次触发错误。

I've just tested this on a rewritemap.config file 753kb in size on a server running IIS8.0 on Windows Server 2012 (I'm making an assumption here that this won't be terribly different from IIS 8.5). You'll need to set the appropriate key depending on whether this is 64bit or 32bit (see here). If in doubt set both. I can confirm that this value is being used since turning the value down to (for example) 10 triggers the error again.

不要忘记重新启动应用程序池。

Don't forget to restart the app pool.

这篇关于在IIS8.5中设置MaxWebConfigFileSizeInKB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆