Мое приложение работает с nodejs, если я запускаю npm на моем локальном компьютере, но я отправляю удаленную машину на сервере iis, эта страница не работает. Я отправляю свою конфигурацию.
мой маршрутизатор для подтверждения пользователя:
<Route path="/auth/confirm-user-information/:token" component={ConfirmUserInformation} />
Мой файл веб-конфигурации на сервере iis:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Static Assets" stopProcessing="true">
<match url="([\S]+[.](html|htm|svg|js|css|png|gif|jpg|jpeg))" />
<action type="Rewrite" url="/{R:1}"/>
</rule>
<rule name="ReactRouter Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/index.html" />
</rule>
</rules>
</rewrite>
<security>
</security>
</system.webServer>
</configuration>
Мой файл .htaccess:
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]