zxh 2 年之前
父節點
當前提交
42c94f335e
共有 1 個文件被更改,包括 23 次插入0 次删除
  1. 23 0
      web.config

+ 23 - 0
web.config

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+    <system.webServer>
+        <rewrite>
+            <rules>
+	<rule name="myProxyServer1">
+                    <match url="^(.*)" />
+                    <conditions>
+                        <add input="{REQUEST_URI}" pattern="api/(.*)" />
+                    </conditions>
+                    <action type="Rewrite" url="http://183.255.30.6:8087/{C:1}" />
+                </rule>
+                <rule name="myProxyServer2">
+                    <match url="^(.*)" />
+                    <conditions>
+                        <add input="{REQUEST_URI}" pattern="service" />
+                    </conditions>
+                    <action type="Rewrite" url="http://183.255.30.6:802/{R:1}" />
+                </rule>
+            </rules>
+        </rewrite>
+    </system.webServer>
+</configuration>