2008系统软件必须根据web.config的设置保留脚本映射功能
参考以下设置:
您必须只在脚本映射的目录下设置一个web.config文档,其内容为
<?xml版本="1.0"编码="UTF-8"?>
<;配置>
<;system.webserver>;
<;处理程序>
<;addname="ttt-map"path="*。TTT"verb="*"modules="isapimodule"scriptprocessor="%windir%\Microsoft。NET\Framework\v4.0.30319\aspnet_isapi.dll"resourcetype="File"preCondition="classicmode,runtimeVersionv4.0,bitness32"/>;
<;/handlers>;
<;/system.webserver>;
<;/configuration>;
部分红色字体的编码设置是将带有ttt后缀的文档映射到aspnet4.0或aspnet4.5,请更改path="*的部分。TTT”按要求。
其他例子: 3.将带html后缀的文档映射到php5.2isapi模式、5.2cgi模式、5.3和5.4版本号(我厂云虚拟主机匹配相对路径) <addname="html"path="*。html"verb="*"modules="isapimodule"scriptprocessor="C:\PHP_52\PHP5isapi.dll"resourcetype="File"precondition="bitness32"/>; <addname="html"path="*。html"verb="*"modules="CGImodule"scriptprocessor="C:\PHP_52\PHP.exe"resourcetype="File"precondition="bitness32"/>; <addname="html"path="*。html"verb="*"modules="FastCgiModule"scriptprocessor="C:\PHP_53\PHP.exe"resourcetype="File"precondition="bitness32"/>; <addname="html"path="*。html"verb="*"modules="FastCgiModule"scriptprocessor="C:\PHP_54\PHP-CGI.exe"resourcetype="File"precondition="bitness32"/>; 如果必须设置全局通配符映射,只需在 *** 作面板-伪静态设置-中立即打开即可。NET通配符映射。 欢迎分享,转载请注明来源:内存溢出
1。将带有html后缀的文档映射到aspnet2.0或ASPNET3.5
注意:如果已经是aspnet程序流,可以立即在system.webServer的handlers部分添加相对映射代码,另外还需要在程序流池中切换到经典模式,开启32适配脚本映射设置才能生效。
评论列表(0条)