I'm sending POST requests to web service (IIS 10 with PHP 7 via FastCGI). Majority of requests are successfully processed, but there are few requests (about 1 in a 100) that are not processed. Problem is, that it seems, that the request fails on IIS, as I'm logging every request when the php web service is called, and I get no log message from these requests.
This is my php.ini configuration:
upload_max_filesize = 30M
max_file_uploads = 20
max_execution_time = 180
max_input_time = 180
memory_limit = 256M
post_max_size = 30M
This is my web.config configuration.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="index.php" />
</files>
</defaultDocument>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="600000000" maxQueryString="600000000" />
</requestFiltering>
</security>
<rewrite>
<rules>
<rule name="Imported Rule 1">
<match url="." ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
This is row from IIS log in inetpub/logs for failed request:
2019-01-18 14:08:30 ::1 POST /site/index - 8180 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/40.0.2214.115+Safari/537.36 - 500 0 64 2406
sc-win32-status is 64, which should be "ERROR_NETNAME_DELETED
".
Here are some additional informations:
- Size of the requests are about 10 MB, same as successful requests.
- I somehow managed to get a log message in PHP few hours ago and the request was basically missing POST data (but I know the request was ok when it is sent)
- There is no redirection, I'm calling full address. Request is from the same server where the web service is.