Deeplink and IIS Configuration.

0
Hi, I have a Mendix application deployed in a private cloud using the port 8080. It is configured using IIS and as an application and exposed to users using a url like  http://abcd.xyz.com/vas/. I have configured a deeplink for the application "http://abcd.xyz.com/vas/link/invoice/47"  and used url rewrite. The web.config is as follows. <?xml version="1.0" encoding="UTF-8"?> <configuration>     <system.webServer>         <staticContent>             <mimeMap fileExtension=".mxf" mimeType="text/xml" />             <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />         </staticContent>         <rewrite>             <rules>                 <rule name="localhost">                     <match url="^(file|link/|xas/|ws/|ws-doc/.*)" />                     <action type="Rewrite" url="http://localhost:8080/{R:0}" />                 </rule>             </rules>         </rewrite>     </system.webServer> </configuration>   But unfortunatley the deeplink is not working as the redirect is not happening properly. Mendix console shows an error stating , invalid number of arguments (2). I have only 1 argument to the microflow.  The applictaion works perfeclty fine when i use the url http://localhost:8080/link/invoice/47.   Could you please help me in configuring the URL re-write in IIS. Any help in this regard is highly appreciated. Thanks, Aravind  
asked
1 answers
0

Have you tried the config as provided in the documentation? 

https://docs.mendix.com/howto50/deploying-mendix-on-microsoft-windows#45-additional-request-handlers

And is your app on the server actually http://localhost:8080/ ?

 <rewrite>
            <rules>
                <rule name="xas" stopProcessing="true">
                    <match url="^(xas/)(.*)" />
                    <action type="Rewrite" url="http://localhost:8080/{R:1}{R:2}" />
                </rule>
                <rule name="ws" stopProcessing="true">
                    <match url="^(ws/)(.*)" />
                    <action type="Rewrite" url="http://localhost:8080/{R:1}{R:2}" />
                </rule>
                <rule name="ws-doc" stopProcessing="true">
                    <match url="^(ws-doc/)(.*)" />
                    <action type="Rewrite" url="http://localhost:8080/{R:1}{R:2}" />
                </rule>
                <rule name="link" stopProcessing="true">
                    <match url="^(link/)(.*)" />
                    <action type="Rewrite" url="http://localhost:8080/{R:1}{R:2}" />
                </rule>
                <rule name="file" stopProcessing="true">
                    <match url="^(file)(.*)" />
                    <action type="Rewrite" url="http://localhost:8080/{R:1}{R:2}" />
                </rule>
            </rules>
        </rewrite>
answered