writeonce/reference/writeonce-app/src/web.config
2026-04-05 00:45:02 +02:00

25 lines
941 B
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<configuration>
<system.webServer>
  <rewrite>
    <rules>
       <rule name="Angular Routes" stopProcessing="true">
        <match url=".*" />
        <conditions logicalGrouping="MatchAll">
          <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
          <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
       
</conditions>
        <action type="Rewrite" url="/" />
     
</rule>
<rule name="Reverse Proxy to api" stopProcessing="true">
<match url="api/(.*)" />
<action type="Rewrite" url="https://localhost:8081/{R:0}" />
</rule>
   
</rules>
 
</rewrite>
</system.webServer>
</configuration>