将expressjs
放在IIS代理后面时,我无法将其重定向到其他域。
<rule name="Reverse Proxy to 3901" stopProcessing="false">
<match url="^(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="http://localhost:3901/{R:1}" />
</rule>
server.get('/', function(req, res) {
res.redirect('http://www.bar.com') //redirect to different domain
});
403 Forbidden
我该怎么办?