使用Tomcat 7和IIS进行NO_CONTENT_ENCODING(OpenClinicaconfiguration)

所以我build立了一个openclinica服务器,但是我有一个(大的)问题。 我将IISconfiguration为反向代理,因此,当我键入我的域名时,它会将我的请求redirect到我的计算机上正确的端口。

除了一件事,一切都运转良好。 在应用程序的一些页面(openclinica),我最终以错误500.52。

而当我检查失败的请求日志文件,我发现这一点:

-DYNAMIC_COMPRESSION_NOT_SUCCESS原因NO_ACCEPT_ENCODING

所以这里是我的应用程序的web.config文件:

<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <remove name="Vary"></remove> <add name="Vary" value="Accept-Encoding"></add> </customHeaders> </httpProtocol> <rewrite> <outboundRules> <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1" stopProcessing="true"> <match filterByTags="A, Form, Img" pattern="^http(s)?://localhost:3030/OpenClinica/(.*)" /> <action type="Rewrite" value="http{R:1}://mywebsite.smthg.live/OpenClinica/{R:2}" /> </rule> <rule name="RestoreAcceptEncoding" preCondition="NeedsRestore" enabled="true"> <match serverVariable="HTTP_ACCEPT_ENCODING" pattern="^(.*)" /> <action type="Rewrite" value="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" /> </rule> <preConditions> <preCondition name="ResponseIsHtml1"> <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /> </preCondition> <preCondition name="NeedsRestore"> <add input="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" pattern=".*" /> </preCondition> </preConditions> </outboundRules> <rules> <rule name="ReverseProxyInboundRule1" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{CACHE_URL}" pattern="^(https?)://" /> </conditions> <action type="Rewrite" url="{C:1}://localhost:3030/{R:1}" /> <serverVariables> <set name="HTTP_ACCEPT_ENCODING" value="" /> <set name="HTTP_Accept-encoding" value="" /> </serverVariables> </rule> </rules> </rewrite> <urlCompression doStaticCompression="true" doDynamicCompression="true" /> <tracing> <traceFailedRequests> <remove path="*" /> <add path="*"> <traceAreas> <add provider="WWW Server" areas="Security,Compression,RequestRouting" verbosity="Verbose" /> </traceAreas> <failureDefinitions timeTaken="00:00:00" statusCodes="500.52, 503" /> </add> </traceFailedRequests> </tracing> </system.webServer> <system.web> <caching> <outputCache omitVaryStar="true" /> </caching> </system.web> </configuration> 

我在这个问题上已经有两天了,我尝试了一切……开始考虑一个完整的重新安装…