PUT and DELETE method not supported on IIS server


#1

I am running a simple website on a http://hostforlife.eu windows server, I suppose it is IIS server. The backend of the website is REST api implemented in PHP. However, when I send requests with PUT and DELETE as method, it just return 405 method unsupported. My web.config is like this:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
              <remove name="Main Rule"/>
                <rule name="Sub Rule" stopProcessing="true">
                    <match url=".*" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                    </conditions>
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

#2

Is this REST API related to DreamFactory in any way? Either way, you may need to contact someone who can support an IIS server. You need to configure your web server to allow the missing verbs. DreamFactory has been successfully deployed on Apache and Nginx by the team here, so unless someone in the forum community here has done so on IIS, this may not be the best place to find support for IIS.