web.config中的IIS 10 urlsementLength

发布于 2025-02-03 11:41:39 字数 702 浏览 4 评论 0原文

我面临的问题是,我的URL段更多,指定了260个字符,如下所示:

https://somedomain.com/xyz/xyz/someverylongsegment

我还设置了解决方案的解决方案在注册表中也是如此。下面的命令行示例

set -itemproperty -path hklm:\ system \ currentControlset \ services \ http \ parameters -name urlSementMaxlength -Value 5000 -Type“ dword”

但是我不想这样做,因为这样做之后,我将不得不重新启动HTTP和W3SVC。由于我在同一服务器上托管了不同的应用程序,因此我不想重新启动它们。

如果我可以在每个应用程序中设置类似的东西,我尝试找到解决方案。因此,我已经尝试过的是在httpruntime和web.config的httpruntime和requestLimit部分中设置maxurl maxurllth maxquerystring maxquerystringlength等。

有人知道吗?

I am facing a problem that i have a url segment more that specified 260 chars like below:

https://somedomain.com/xyz/SomeVeryLongSegment

I have the solution as well to set the DWORD value in the Registry for the same. Command line example below

Set-ItemProperty -Path
HKLM:\System\CurrentControlSet\Services\HTTP\Parameters -Name
UrlSegmentMaxLength -Value 5000 -Type "Dword"

But what I do not want to do that since after doing that I will have to restart the http and w3svc. Since I have different applications hosted on the same server I do not want to restart them all.

I tried finding the solution if there is something similar which I can set in web.config per application. With that I already tried is setting maxUrl maxUrlLength maxQueryString maxQueryStringLength etc. etc in httpRuntime and requestLimit section of web.config.

Does anyone knows about the same?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文