View Mode: Normal | Article List
Category: IIS | < | 1 | 2 | 3 | >

Not enough resources are available to complete

[ 2006-06-20 22:26:15 | Author: zhenhua ]
该死的IIS,该死的Microsoft,微软的解释,说了等于没说

Error Log:
Event ID: 7023
Source: Service Control Manager
The World Wide Web Publishing Service service terminated with
the following error: Not enough resources are available to complete this operation.

World Wide Web Publishing Service 服务因下列错误而停止:
资源不足,无法完成此操作。

When run:net start w3svc
Error 1721: Not enough resources are available to complete this operation

CAUSE
This problem occurs because of improper ...

Read More...

Wap 支持设置

[ 2006-06-03 19:24:33 | Author: zhenhua ]
站点属性-->Http头-->MIME映射中添加新的文件类型,具体如下:
关联文件名 内容类型
wml text/vnd.wap.wml
wmlc application/vnd.wap.wamlc
wmls text/vnd.wap.wmlscript
wmlsc application/vnd.wap.wmlscript
wbmp image/vnd.wap.wbmp

类型
ContentType = "text/vnd.wap.wml; charset=utf-8"

IIS URLRewrite 匹配任何字符

[ 2006-05-16 16:55:15 | Author: zhenhua ]
{[^\/<>=()'";:.^]+} 或 ([^\/<>=()'";:.^]+)

包括中文在内,除了"/" "\" ">" "<" "=" "(" ")" ";" ":" "." 这10个特殊字符外其他一律匹配

Metacharacter for URLRewrite

[ 2006-04-21 21:46:43 | Author: zhenhua ]
记录一下,方便随时查询 [evil]
Metacharacter Meaning
. Matches any single character.
[ ] Indicates a character class. Matches any character inside the brackets (for example, [abc] matches "a", "b", and "c").
^ If this metacharacter occurs at the start of a character class, it negates the character class. A negated character class matches any character except those inside the brackets (for example, [^abc] matches all characters except "a", "b", and "c").
If ^ is at the beginning of the regular
...

Read More...

IIS HTTP 405

[ 2006-04-20 19:26:28 | Author: zhenhua ]
IIS不允许form中的action 不指定文件,像类似method=post action="./" 或action="/test/" 都会提示‘HTTP 405- 资源被禁止’
action方法必须指定文件才行

Because no ACTION attribute is specified in the tag, both Netscape Navigator and Internet Explorer try to make an HTTP POST request to the URI "web/". According to the HTTP RFC (RFC 2068), this is not a valid Request-URI for a POST operation.

To work around this problem, use one of the following methods:
• Redirect from the default document to a different document. In this case, ...

Read More...

IIS防盗链

[ 2006-04-19 17:41:38 | Author: zhenhua ]
规则:
RewriteCond Host: (.+)

RewriteCond Referer: (?!http://\1.*).*

RewriteRule .*\.(?:gif|jpg|png|exe|rar|zip) /block.gif [I,O]

ISAPI_Rewrite中文手册

[ 2006-03-17 14:28:12 | Author: zhenhua ]
配置:
在NT 2000 XP和2003平台上,在系统帐户下应该INETINFO程序应该与IIS5以共存模式过滤器运行。所以系统帐户应该给予对所有的ISAPI-REWIRITE DLLS 和所有的HTTPD。INI文件至少可读权限,我们也推荐对给予系统帐户对于所有包括HTTPD。INI文件的文件夹的可写权限,这将允许产生HTTP。PARSE。ERRORS文件,这些文件包含配置文件语法错误。对于PROXY模块也需要额外的权限,因为它将运行于连接池或HIGH-ISPLATED应用模式,IIS帐户共享池和HIGH-ISOLATION池应被给予 对RWHELPERE。DLL的可读权限。缺省情况下IWAM-《计算机名》被用于所有的池,在相应的COM+应用设置中应借助COM+ADMINISTRATION MMC SNAP-IN建立池帐户
配置文件格式化:

有两种形式的配置文件-GLOBAL(SERVER-LEVEL)和INDIVIDUAL(SITE-LEVAL)文件,GLOBAL配置文件应被命名为HTTPD.INI并出现在ISAPI-REWRITE安装目录中,文件的快捷方式通过开始菜
...

Read More...

IIS伪静态处理

[ 2006-03-13 12:19:38 | Author: zhenhua ]
http://www.isapirewrite.com/

类似Apache的Rewrite,非常不错,收费支持所有功能、URL 重写、反向代理(即泛解析)、支持单个虚拟主机、即刻生效、更好的内存管理等
免费支持URL重写,不支持反向代理,不支持单个虚拟主机等,如果不需要支持泛解析的话免费版已够用了。

如果要做到支持每个虚拟主机单独设置,可以用紫雨轩的免费组件,紫雨轩的组件不是即时生效,修改规则后要Reset IIS,不支持反向代理等。

Download Click Here To Download

正则记录

RewriteRule /(\d+)\.html /display\.asp\?id=$1 [N,I]
RewriteRule /type([0-9]*).html /type.asp\?typeid=$1
RewriteRule /class([0-9]*).html /class.asp\?classid=$1
RewriteRule /page([0-9]*).html /index.asp\?page=$1
...

Read More...