Table of Contents
回复讨论(解决方案)

HTTP 错误 404.17

Jun 23, 2016 pm 01:44 PM

错误摘要
HTTP 错误 404.17 - Not Found
请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理。 详细错误信息模块 StaticFileModule 
通知 ExecuteRequestHandler 
处理程序 StaticFile 
错误代码 0x80070032 
请求的 URL http://localhost:8080/index.php 
物理路径 \public_html\index.php 
登录方法 匿名 
登录用户 匿名 
 最可能的原因:
请求与通配符 mime 映射相匹配。请求映射到静态文件处理程序。如果有不同的前提条件,请求将映射到另一个处理程序。 
 可尝试的操作:
如果要将此内容作为静态文件提供,请添加显式 MIME 映射。 

===============

这个是新建了一个站点测试程序。原来的默认站点是正在正常运行PHP的DISCUZ程序。不知这个是什么原因。

谢谢~~


回复讨论(解决方案)

照这么看是iis 没有添加对php 的 MIME 支持?

补充一下是WIN2008;IIS7.5的配置。

IIS ?
你新建的站点没有配置 php 扩展支持

MIME类型是用来指定采用某种扩展名的文件用哪一种应用程序来打开。当该扩展名文件被访问的时候,浏览器会自动使用指定应用程序来打开。例如,.xls扩展名的文件用Excel来打开。多用于指定一些客户端自定义的文件名,以及一些媒体文件打开方式。
例如:我们现在要定义一个.aillo扩展名,它打开时以html格式打开。
Internet 信息服务→网站→默认网站→HTTP头→MIME映射→文件类型→注册文件类型→新类型→设置完点确定即可浏览以.aillo为后缀的网页

参考一下 添加php 的mime 支持 看看是否ok.

有设置程序程序映射  PHP 

我不与你争,我现在也不用 iis 了

只要搜索一下 “HTTP 错误 404.17 - Not Found”
都是 asp 或 asp.net 未部署好的解答,微软自己的都尚且如此,何况第三方的 php 呢?

现在我是寻求解决问题,不是用与不用的争论

问题已解决,谢谢各位~~

CMD下:

set config /section:system.webServer/fastCGI /+[fullPath='路径\php-cgi.exe']

set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI', path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='路径\php-cgi.exe',resourceType='Either']


我的问题,就解决了。

我是学ASP.Net的,出现这种情况的原因通常是因为先安装了Framework,后安装的IIS;
只需要重新安装一下就可以了。在Frameworv4.0的目录中安装的程序以管理员权限重新运行一下就可以了.
点开始-运行:cmd-->输入C:\windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i回车

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Working with Flash Session Data in Laravel Working with Flash Session Data in Laravel Mar 12, 2025 pm 05:08 PM

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

Build a React App With a Laravel Back End: Part 2, React Build a React App With a Laravel Back End: Part 2, React Mar 04, 2025 am 09:33 AM

This is the second and final part of the series on building a React application with a Laravel back-end. In the first part of the series, we created a RESTful API using Laravel for a basic product-listing application. In this tutorial, we will be dev

Simplified HTTP Response Mocking in Laravel Tests Simplified HTTP Response Mocking in Laravel Tests Mar 12, 2025 pm 05:09 PM

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

cURL in PHP: How to Use the PHP cURL Extension in REST APIs cURL in PHP: How to Use the PHP cURL Extension in REST APIs Mar 14, 2025 am 11:42 AM

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

12 Best PHP Chat Scripts on CodeCanyon 12 Best PHP Chat Scripts on CodeCanyon Mar 13, 2025 pm 12:08 PM

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

Notifications in Laravel Notifications in Laravel Mar 04, 2025 am 09:22 AM

In this article, we're going to explore the notification system in the Laravel web framework. The notification system in Laravel allows you to send notifications to users over different channels. Today, we'll discuss how you can send notifications ov

Explain the concept of late static binding in PHP. Explain the concept of late static binding in PHP. Mar 21, 2025 pm 01:33 PM

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

PHP Logging: Best Practices for PHP Log Analysis PHP Logging: Best Practices for PHP Log Analysis Mar 10, 2025 pm 02:32 PM

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot

See all articles