糖尿病网pc端官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

106 lines
4.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<!--
This configuration file is required if iisnode is used to run node processes behind
IIS or IIS Express. For more information, visit:
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config
-->
<configuration>
<system.webServer>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
<!-- Indicates that the server.js file is a node.js site to be handled by the iisnode module -->
<add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
</handlers>
<rewrite>
<rules>
<rule name="uploadfile Rule 1" stopProcessing="true">
<match url="^(uploadfile/.*)" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^diabetespctst.chinacloudsites.cn$" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://sancdiabeteswebn201.blob.core.chinacloudapi.cn/{UrlEncode:{R:0}}" />
</rule>
<rule name="uploadfile Rule 2" stopProcessing="true">
<match url="^(uploadfile/.*)" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^diabetespcprd.chinacloudsites.cn$" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://sancdiabetesprdwebn201.blob.core.chinacloudapi.cn/{UrlEncode:{R:0}}" />
</rule>
<rule name="Proxy test" stopProcessing="true">
<match url="^(web/.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^diabetespctst.chinacloudsites.cn$" />
</conditions>
<action type="Rewrite" url="https://ncdiabetesdevsite.chinacloudsites.cn/{R:0}" />
</rule>
<rule name="Proxy prod" stopProcessing="true">
<match url="^(web/.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^diabetespcprd.chinacloudsites.cn$" />
</conditions>
<action type="Rewrite" url="https://ncdiabetesprdsite.chinacloudsites.cn/{R:0}" />
</rule>
<rule name="uploadfile Rule 3" stopProcessing="true">
<match url="^(uploadfile/.*)" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.diabetes.com.cn$" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://sancdiabetesprdwebn201.blob.core.chinacloudapi.cn/{UrlEncode:{R:0}}" />
</rule>
<!-- Do not interfere with requests for node-inspector debugging -->
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^server.js\/debug[\/]?" />
</rule>
<!-- First we consider whether the incoming URL matches a physical file in the /public folder -->
<rule name="StaticContent">
<action type="Rewrite" url="public{PATH_INFO}"/>
</rule>
<!-- All other URLs are mapped to the node.js site entry point -->
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
</conditions>
<action type="Rewrite" url="server.js"/>
</rule>
</rules>
</rewrite>
<!-- 'bin' directory has no special meaning in node.js and apps can be placed in it -->
<security>
<requestFiltering>
<hiddenSegments>
<remove segment="bin"/>
</hiddenSegments>
</requestFiltering>
</security>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="sameorigin" />
<add name="X-XSS-Protection" value="1; mode=block" />
<add name="Strict-Transport-Security" value="max-age=63072000; includeSubdomains; preload" />
<add name="X-Content-Type-Options" value="nosniff" />
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
<!-- Make sure error responses are left untouched -->
<httpErrors existingResponse="PassThrough" />
<!--
You can control how Node is hosted within IIS using the following options:
* watchedFiles: semi-colon separated list of files that will be watched for changes to restart the server
* node_env: will be propagated to node as NODE_ENV environment variable
* debuggingEnabled - controls whether the built-in debugger is enabled
See https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config for a full list of options
-->
<!--<iisnode watchedFiles="web.config;*.js"/>-->
</system.webServer>
</configuration>