错误摘要
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回车

Long URLs, often cluttered with keywords and tracking parameters, can deter visitors. A URL shortening script offers a solution, creating concise links ideal for social media and other platforms. These scripts are valuable for individual websites a

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-

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

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' =>

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.

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

The 2025 PHP Landscape Survey investigates current PHP development trends. It explores framework usage, deployment methods, and challenges, aiming to provide insights for developers and businesses. The survey anticipates growth in modern PHP versio

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


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
