How to make IIS6 recognize pathinfo routes instead of returning a "404 Undescribed" error?

I am developing a RESTful web application in PHP. I have:

  • on test server , Windows 7 / Apache 2.2 / PHP 5.2.9 (mod_php)
  • on production server , Windows Server 2003 / IIS6 / PHP 5.2.4 (php5isapi.dll)

While the test environment does not have problems, the production server cannot send any RESTful request using pathinfo (for example, pages such as /mypath/app.php/controller/idwhere the processing of the script is equal /mypath/app.php)) and gives a nice blank page with the message:

No input file specified. 

Using firebug, I see the response headers:

HTTP/1.1 404 Undescribed
Proxy-Connection: close
Connection: close
Via: 1.1 XXXXX
Date: Thu, 23 Jun 2011 14:51:18 GMT
Content-Type: text/html
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET, PHP/5.2.4

Where XXXXXis the name of the proxy.

googled , , SO, . ?

, PHP / IIS . IIS/PHP IIS.

,

+5
3

@hakre , , , , ...

:

  • php.ini , doc_root=...;
  • IIS;
  • services.msc , " World Wide Web";

, PATH_INFO .

!

- , .

+3

" ".

Home Directory - .php .

- . pathinfo .

+2

, ISAPI_REWRITE (http://www.isapirewrite.com/)

+1

All Articles