Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
327 views
in Technique[技术] by (71.8m points)

node.js - Windows Server 2012 I can't access my url from outside using IIS and IISNode

I have a MEAN Stack application (Node.js, Angular, MySql, Express) i created some api, and i build with iis site building the iisnode.local on port 80, and add web.config with reverse proxy, but when i try to call from external browse dont open nothing

    <?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="ReverseProxyInboundRule1" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://localhost:3000/{R:1}" />
                </rule>
            </rules>
            <outboundRules>
                <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
                    <match filterByTags="A, Form, Img" pattern="^http(s)?://localhost:3000/(.*)" />
                    <action type="Rewrite" value="http{R:1}://iisnode.local/{R:2}" />
                </rule>
                <preConditions>
                    <preCondition name="ResponseIsHtml1">
                        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                    </preCondition>
                </preConditions>
            </outboundRules>
        </rewrite>
    </system.webServer>
</configuration>

THIS IS THE DATA ON SITE BINDINGS

enter image description here

enter image description here

<sites>
      <site name="IISNode" id="9" serverAutoStart="true">
        <application path="/" applicationPool="IISNode">
          <virtualDirectory path="/" physicalPath="D:
odemate_marketackend" />
        </application>
        <bindings>
          <binding protocol="http" bindingInformation="IP-SERVER:80:iisnode.local" />
        </bindings>
      </site>
question from:https://stackoverflow.com/questions/65885048/windows-server-2012-i-cant-access-my-url-from-outside-using-iis-and-iisnode

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...