- Which Azure web app template is best for hosting an Angular2 app?
ng2 Azure Azure "-", IIS, . ( node -.) , , .
- - , Angular?
Web.Config FTP'd (/site/wwwroot - index.html) :
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="AngularJS" stopProcessing="true">
<match url="^(?!.*(.bundle.js|.bundle.map|.bundle.js.gz|.bundle.css|.bundle.css.gz|.png|.jpg|.ico)).*$" />
<conditions logicalGrouping="MatchAll">
</conditions>
<action type="Rewrite" url="/" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
RegEx index.html( root, ), , (.js,.css,.png ..)
.
: URL-/OAuth
web.config, Kristoffer (OP) OAuth, OAuth Azure 400:
maxQueryStringLength.
Kristoffer , fooobar.com/questions/810/..., <requestLimits maxQueryString="32768"/> <httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/> web.config. web.config Gist " - Azure Angular2 URL- auth." .
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxQueryString="32768"/>
</requestFiltering>
</security>
<rewrite>
<rules>
<rule name="AngularJS" stopProcessing="true">
<match url="^(?!.*(.bundle.js|.bundle.map|.bundle.js.gz|.bundle.css|.bundle.css.gz|.png|.jpg|.ico)).*$" />
<conditions logicalGrouping="MatchAll"></conditions>
<action type="Rewrite" url="/" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>