internet信息服务(iis)无法删除的解决方法:
1、进入控制面板;
2、然后点击添加删除程序;
3、接着点击“添加/删除windows组件”;
4、点击“internet信息服务(iis)”,呈现蓝色显示;
5、接着点击下方的“详细信息”按钮,将会弹出“internet信息服务(iis)”菜单,显示里面有7个选项。从下到上先把最下面一个选项的勾去掉,接着点击下一步,然后就会自动删除本项目;重复上一步,依次把一个一个项目删除,则internet信息服务(iis)就彻底卸载完成了!
6、如果在删除以上的项目中仍出现无法删除的情况,则先进行以下的操作:
(1)删除%windir%system32inetsrv目录;
(2)删除%windir%iisx.log文件(x是iis版本);
(3)删除%windir%inetpub目录;
(4)以上3个操作可以在安全模式下进行,然后再进行以上第5步的操作。
一般情况下,重装iis的步骤为:
1、卸载iis;
2、删除%windir%system32inetsrv目录;
3、删除%windir%iisx.log文件(x是iis版本);
4、删除%windir%inetpub目录;
5、重装iis。
有些2003系统的iis按如上设置就是不行,下面的方法虽然可以,但返回的状态码却是200:
把消息内容设置成 url
url里填写 /404.htm
再把 404.htm 放在网站根目录下。
直接修改默认的404页面也是不行的。
原来是文件访问权限的问题,只要把404.htm设置成everyone可读 就行了
iis中404设置方法
打开iis管理器-->右击网站的属性-->点击自定义错误选项-->选中404-->选中并打开编辑属性-->设置成 url --> url 里填写"/www.111cn.net.html"-->此处在"消息类型"中一定要选择"文件"或"默认值",而不要选择"url",不然,将导致返回"200"状态码。-->确定退出把做好的err.html 页面上传到网站根目录
http404对seo教程的影响
自定义404错误页面对搜索引擎而言,这则是相当重要的。
当搜索引擎蜘蛛在请求某个url时得到"404′状态回应时,即知道该url已经失效,便不再索引该网页,并向数据中心反馈将该url表示的网页从索引数据库教程中删除,当然,删除过程有可能需要很长时间;而当搜索引擎得到"200′状态回应时,则会认为该url是有效的,便会去索引,并会将其收录到索引数据库,这样的结果便是这两个不同的url具有完全相同的内容:自定义404错误页面的内容,这会导致出现复制网页问题。对搜索引擎而言,特别是google,不但很难获得信任指数trustrank,也会大大降低google对网站质量的评定。(为什么会出现返回"200′状态码的情况??请参看下面内容"自定义404错误页面的基本原则")
提供几个404是否设计正确方法检测地址
http://seo.g2soft.net/online-tools/server_status_checker.php#result
http://www.ranknow.cn/tools/checkhttpcode404
bind 9的配置方法
/etc/named.conf
options {
directory "/var/named";
};
# named.root is available at ftp://ftp.internic.net/domain/named.root
zone "." in {
type hint;
file "named.root";
};
# here is zone for domain ustrem.org
zone "ustrem.org" in {
type master;
file "ustrem.org";
allow-transfer { none; };
allow-update { none; };
};
# here is reverse zone zone for net 192.168.2.0/255.255.255.0
zone "2.168.192.in-addr.arpa" {
type master;
file "loc";
allow-update { none; };
};
----------------------------------------------------
here is ustrem.org's zone file
-----------------------------
/var/named/ustrem.org
$origin .
$ttl 86400 ; 1 day
ustrem.org in soa pns.ustrem.org. onzi.ustrem.org. (
# onzi.ustrem.org is email for contacts (onzi_at_ustrem_dot_org)
2006083102 ; serial
# this is stamp for date and time and number of day change
3600 ; refresh (8 hours)
1800 ; retry (4 hours)
86400 ; expire (5 weeks 6 days 16 hours)
3600 ; minimum (1 day)
)
ns pns.ustrem.org.
ns ns1.xname.org.
# ns records for domain
a 213.240.243.12
# this line shows "ustrem.org" is with ip 213.240.243.12
mx 10 mail.ustrem.org.
# here is smtp server which received mails for ustrem.org
txt "v=spf1 mx a:mail.b-trust.org a:mailrelay.bsbg.net -all"
# this is text record for prevent from spammers and spoofers. here is smtp-s which sends emails from ustrem.org
$origin ustrem.org.
* a 213.240.243.12
# some-does-not-described.ustrem.org is with ip 213.240.243.12
bobi a 213.240.227.125
pns a 213.240.243.12
*.bobi cname bobi.ustrem.org.
boiko a 84.238.128.65
george a 213.240.242.107
laptoper4e a 192.168.2.18
mitkosipc a 192.168.2.4
pi-server a 192.168.2.15
pz a 217.10.245.249
router a 192.168.2.24
----------------------------------------------------------------------------------
here is reverse resolv
---------------------------------------------
/var/named/loc
$origin .
$ttl 86400 ; 1 day
2.168.192.in-addr.arpa in soa pns.ustrem.org. onzi.ustrem.org. (
2006080302 ; serial
28800 ; refresh (8 hours)
14400 ; retry (4 hours)
3600000 ; expire (5 weeks 6 days 16 hours)
86400 ; minimum (1 day)
)
ns pns.ustrem.org.
ns sns.ustrem.org.
$origin 2.168.192.in-addr.arpa.
4 ptr mitkosipc.ustrem.org.
18 ptr laptoper4e.ustrem.org.
15 ptr pi-server.ustrem.org.
24 ptr router.ustrem.org.
---------------------------------------------
this is enougt for bind9 to work.
now you can start and test it....
# dig ustrem.org @127.0.0.1
;; question section:
;ustrem.org. in a
;; answer section:
ustrem.org. 86400 in a 213.240.243.12
# dig ustrem.org @127.0.0.1 mx
;; question section:
;ustrem.org. in mx
;; answer section:
ustrem.org. 86400 in mx 10 mail.ustrem.org.
# dig -x 192.168.2.4 @127.0.0.1
;; question section:
;4.2.168.192.in-addr.arpa. in ptr
;; answer section:
4.2.168.192.in-addr.arpa. 86400 in ptr mitkosipc.ustrem.org.
要让iis支持wap需增加
在mime map部分,点击file type并且输入以下信息:
associated extension mime type
wml text/vnd.wap.wml
wmlc application/vnd.wap.wmlc
wbmp image/vnd.wap.wbmp
wmlsc application/vnd.wap.wmlscriptc
wmls text/vnd.wap.wmlscript
wsc application/vnd.wap/wmlscriptc
mime属性。
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>向编辑器插入指定 并设置编辑器中内容</title>
<script>
//向编辑器插入指定代码
function inserthtmltoeditor(codestr){
var oeditor = fckeditorapi.getinstance("content");
if (oeditor.editmode==fck_editmode_wysiwyg){
oeditor.inserthtml(codestr);
}else{
return false;
}
}//设置编辑器中内容
function setcontents(codestr){
var oeditor = fckeditorapi.getinstance("content") ;
oeditor.sethtml(codestr) ;
}
</script>
</head><body>
</body>
</html>