'On the server controlled by Plesk, node.js only home page get method works

the node.js application I coded works on my own host, locally, etc., but does not work on plesk. enter image description here

It only works when entering the home page. When I entered the /test directory, it was giving a 404 error. When I add the following web.config 403 - Forbidden: Access is denied.

You do not have permission to view this directory or page using the credentials that you supplied. I'm starting to get the error. Could you please help I couldn't understand why I can only access the home directory.

<configuration>
<system.webServer>
    <rewrite>
      <rules>
        <rule name="Main Rule" 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="/" />
            </rule>
        </rules>
    </rewrite>
</system.webServer>
</configuration>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source