reverse proxy with angular 19 and dotnet 9.0 issue

Discussão em 'Angular' iniciado por D052057, Abril 14, 2025.

  1. D052057

    D052057 Guest

    I have IIS running in Windows 11, my main website (angular + dotnet) running on port 80 and 443. My second webpage (let say secondsite) is running on port 8090 and 443. It is also an Angular + Dotnet app. Here is the rule in Web.config

    <rule name="RegularSiteProxy" stopProcessing="true">
    <match url="^secondsite/(.*)" />
    <action type="Rewrite" url="http://secondsite:8090/{R:1}" />
    </rule>


    What happend is that when I type http://mywebpage/secondsite, it reroute the app to http://secondsite. I expect to see http://mywebpage/secondsite/something... Since I am in the server, this case is working since http://seconsite is working. Howeve, I am on a remote site, this won't work I got 404 from mywebpage. Is there any one run into this in past? How do you fix it? Another suggestion is to use YARP but I don't know how. Thanks.

    Continue reading...

Compartilhe esta Página