Article ID: 186803 - Last Review: June 23, 2005 - Revision: 3.3 Browsing Folders with Script-Mapped Extensions Returns ErrorsThis article was previously published under Q186803 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: http://www.microsoft.com/technet/security/prodtech/IIS.mspx
(http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
SYMPTOMS
If you try to browse folders with extensions that are script-mapped, one
of the following errors occurs:
CAUSE
In general, it is bad practice to name a folder using an extension that is
MIME-mapped, but this holds especially true for scripted extensions. This
is because it is common to pass information to a Web script that will be
included as part of the PATH_INFO environment variable.
For example, a CGI program at the URL http://localhost/foo.cgi/default.htm (http://localhost/foo.cgi/default.htm) receives "/foo.cgi/default.htm" in PATH_INFO. WORKAROUND
To work around this problem, name Web folders without extensions, or use
extensions that are not script-mapped.
MORE INFORMATION
On a system with a CGI-based Practical Extraction and Report Language
(Perl) interpreter, save the following Perl script as "env.cgi" in your
default "/scripts" folder.
When you browse to http://localhost/scripts/env.cgi/test.htm (http://localhost/scripts/env.cgi/test.htm) you see the PATH_INFO environment variable reflect the information passed to the script as "/env.cgi/test.htm".
| Article Translations
|

Back to the top
