Browsing the archives for the iis tag

iisapp 命令 弹出 iisschlp.wsc [88,25] 属性值无效 progid

in 服务器类

在执行iisapp.vbs时,可能会提示如下错误: Windows Script Component - file://C:WINDOWSsystem32iisschlp.wsc [88,25] 属性值无效 : progid 不要汗,解决也挺简单。 原因是为了所谓的ASP安全,卸载了 shell.applaction 组件,也就是 wshom.ocx 重新注册即可正常运行 iisapp.vbs 注册命令: regsvr32 wshom.ocx 用完以后,可以再把这个组件卸载掉: regsvr32 /u /s weboffice.ocx 有关iisapp命令的用法请参考:http://blog.haohtml.com/archives/9

0 Comments

web服务器做301重定向优化设置(apache,nginx,iis)

in 服务器类

做网站优化的时候,网站301重定向是一个非常重要的操作方式。这样能够把多个域名的权重集中到一个域名,例如:www.haohtml.com和 haohtml.com,我们把haohtml.com重定向到www.haohtml.com,搜索引擎在搜索的时候,会把搜索结果或者Google评级的时候都集 中到www.haohtml.com。但是,在设置301的时候,会根据服务器的不同,有不同的设置。 一般情况下,网站301重定向可以分为IIS、Apache、Nginx三种,接下来我说明一下在虚拟主机下如何实现301重定向。 IIS:如果使用ASP的网站程序,可以使用asp脚本实现301重定向:写入header.asp或者其他头部文件。 这种方法最为简单,当然空间支持ISAPI 可以在网站根目录新建一个httpd.ini 将haohtml.com转移到www.haohtml.com上 [ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 RewriteCond Host: ^haohtml.com\.com$ RewriteRule (.*) http\://www\.haohtml\.com$1 [I,RP] Apache:当服务器是apache的时候,只要在网站根目录新建一个.htaccess,写入以下代码: rewriteEngine on rewriteCond %{http_host} ^haohtml.com [NC] rewriteRule ^(.*)$ http://www.haohtml.com/$1 [R=301,L] Nginx:如果web服务器是Nginx,需要修改绑定的域名的配置文件,例如:haohtml.com.conf 在行 :server_name www.haohtml.com haohtml.com;下面添加 if ($host != ‘www.haohtml.com’ ) { rewrite ^/(.*)$ http://www.haohtml.com/$1 permanent; } 实现重定向的方法还有很多,这里仅列举最常见的。如果你已经设置好301重定向,请务必使用:http://www.ranknow.cn/tools/redirectcheck监测是否成功重定向

0 Comments

IIS中的上传目录权限设置问题

in 服务器类

虽然 Apache 的名声可能比 IIS 好,但我相信用 IIS 来做 Web 服务器的人一定也不少。说实话,我觉得 IIS 还是不错的,尤其是 Windows 2003 的 IIS 6(马上 Longhorn Server 的 IIS 7 也就要来了,相信会更好),性能和稳定性都相当不错。但是我发现许多用 IIS 的人不太会设置 Web 服务器的权限,因此,出现漏洞被人黑掉也就不足为奇了。但我们不应该把这归咎于 IIS 的不安全。如果对站点的每个目录都配以正确的权限,出现漏洞被人黑掉的机会还是很小的(Web 应用程序本身有问题和通过其它方式入侵黑掉服务器的除外)。下面是我在配置过程中总结的一些经验,希望对大家有所帮助。

0 Comments

iis网站安全设置

in 服务器类

先设置一下站点所在分区的安全,让只允许administrators和system这两组用户可以安全访问,如下图: 设站点信息全部放在d:里的wwwroot文件夹里,这里注意不能直接把站点信息放在根目录里,需要建立一个文件夹(为了站点的安全,后面需要用到这个文件夹的权限)

0 Comments

IIS安全权限设置

in 服务器类

系统用户情况为:
administrators 超级管理员(组)
system 系统用户(内置安全主体)
guests 来宾帐号(组)
iusr_服务器名 匿名访问web用户
iwam_服务器名 启动iis进程用户
www_cnnsc_org 自己添加的用户、添加后删除Users(组)、删除后添加到guests来宾帐号(组)
为加强系统安全、(guest)用户及(iusr_服务器名)用户均被禁用
将访问web目录的全部账户设为guests组、去除其他的组

0 Comments

Security Assertion Markup Language (SAML)

in 服务器类

SAML, developed by the Security Services Technical Committee of OASIS, is an XML-based framework for communicating user authentication, entitlement, and attribute information. As its name suggests, SAML allows business entities to make assertions regarding the identity, attributes, and entitlements of a subject (an entity that is often a human user) to other entities, such as a partner company or another enterprise application. Federation is the dominant movement in identity management today. Federation refers to the establishment of some or all of business agreements, cryptographic trust, and user identifiers or attributes across security and policy domains to enable more seamless cross-domain business interactions. As Web services promise to enable integration between business partners through loose coupling at the application and messaging layer, federation does so at the identity management layer — insulating each domain from the details of the others' authentication and authorization infrastructure. Key to this loose coupling at the identity management layer are standardized mechanisms and formats for the communication of identity information between the domains — the standard provides the insulating buffer. SAML defines just such a standard." [FAQ 2006]

0 Comments

使用 iissapp.vbs 列出正在运行的 Web 应用程序

in 服务器类

可使用命令行脚本 iisapp.vbs(存储在 systemroot\system32 中)查看当前正在运行的任何工作进程。该命令通常用于排除故障。 发出该命令的计算机必须运行 Windows XP 或 Windows Server 2003 家族的成员。该命令所影响的计算机必须运行带有 IIS 6.0 的 Windows Server 2003 家族的成员。 重要事项: 只有本地计算机上 Administrators 组的成员才能运行脚本和可执行文件。作为安全性最佳操作,请使用不属于 Administrators 组的帐户登录计算机,然后使用 runas 命令以管理员身份运行脚本和可执行文件。在命令提示符下,键入 runas /profile /User:MyComputer\Administrator cmd,使用管理员权限打开一个命令窗口,然后键入 cscript.exeScriptName(包括脚本的完整路径和任何参数)。 本主题包括下列信息: • 语法:键入命令时必须采用的顺序以及它后面的任何参数和选项。 • 参数:赋予命令中变量的值。 • 示例:示例代码和对结果的说明。 语法 iisapp [/a AppPoolName | /p PID] 参数 /a AppPoolName

0 Comments