c# - Combining ASP.NET MVC and Reverse Proxy with URL Rewrite v2 -


i have need submit data different host name , hoping utilize reverse proxy guide found here iis 7.5

http://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing/

i have added following code system.webserver entry in site's root web.config

<system.webserver>         <urlcompression dostaticcompression="true" dodynamiccompression="true" />         <staticcontent>             <remove fileextension=".js" />             <mimemap fileextension=".js" mimetype="text/javascript" />         </staticcontent>         <validation validateintegratedmodeconfiguration="false" />         <modules runallmanagedmodulesforallrequests="true">             <remove name="scriptmodule" />             <remove name="urlroutingmodule" />             <add name="scriptmodule" precondition="managedhandler" type="system.web.handlers.scriptmodule, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />             <add name="urlroutingmodule" type="system.web.routing.urlroutingmodule, system.web.routing, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />         </modules>         <handlers>             <remove name="webservicehandlerfactory-integrated" />             <remove name="scripthandlerfactory" />             <remove name="scripthandlerfactoryappservices" />             <remove name="scriptresource" />             <remove name="mvchttphandler" />             <remove name="urlroutinghandler" />             <add name="scripthandlerfactory" verb="*" path="*.asmx" precondition="integratedmode" type="system.web.script.services.scripthandlerfactory, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />             <add name="scripthandlerfactoryappservices" verb="*" path="*_appservice.axd" precondition="integratedmode" type="system.web.script.services.scripthandlerfactory, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />             <add name="scriptresource" precondition="integratedmode" verb="get,head" path="scriptresource.axd" type="system.web.handlers.scriptresourcehandler, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />             <add name="mvchttphandler" precondition="integratedmode" verb="*" path="*.mvc" type="system.web.mvc.mvchttphandler, system.web.mvc, version=2.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />             <add name="urlroutinghandler" precondition="integratedmode" verb="*" path="urlrouting.axd" type="system.web.httpforbiddenhandler, system.web, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a" />             <add name="assethandler" precondition="integratedmode" verb="get,head" path="asset.axd" type="telerik.web.mvc.webassethttphandler, telerik.web.mvc"/>             <add name="crystalimagehandler.aspx_get" verb="get" path="crystalimagehandler.aspx" type="crystaldecisions.web.crystalimagehandler, crystaldecisions.web, version=10.5.3700.0, culture=neutral, publickeytoken=692fbea5521e1304" precondition="integratedmode"/>         </handlers>       <rewrite>         <rules>           <rule name="reverse proxy spellchecker" stopprocessing="true">             <match url="^spellchecker/(.*)" />             <action type="rewrite" url="http://spellcheck001.xxx.yyy/{r:1}" logrewrittenurl="true" />           </rule>         </rules>       </rewrite>     </system.webserver> 

can not combine built in rewrite module mvc? have tried google , found no straightforward answer. if attempt access url within spellchecker path receive 404 response.

i had same problem , did not find solution. @ end used http://urlrewriter.codeplex.com. module handles pretty high load on our server , did not have problem yet.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -