Tag Archive: host


How to show classic asp error details on GoDaddy IIS7

I also use GoDaddy and have been going crazy because everything would work on my test server but then break once uploaded. I finally got the web.config to work and here it is.

Either add this to your existing web.config, or create a new one. I have it in the directory of files I am troubleshooting. Not sure if it makes a difference:






The following article explains the setting about ASP error message, for your reference:
Classic ASP script error messages are no longer shown in a Web browser by default
Classic ASP script error messages are no longer shown in a Web browser by default (http://learn.iis.net/page.aspx/564/classic-asp-script-error-messages-are-no-longer-shown-in-a-web-browser-by-default/)

What is A, MX, And CNAME Records

You shouldn’t need to touch the A, MX and CName records unless you are using your registrar’s nameservers (usually if you are hosting the website yourself). If you point the domain to someone else’s nameservers (such as Trap17′s) then you do not need to modify the A, MX and CName records, and doing so will have absolutely no effect.

Be very careful when altering things like this, if you were to remove the ‘www’ record for instance, your web forwarding (if set up) would fail.

‘A’ records – A records are a pointer linking a name to an IP (Internet Protocol) address.

‘CNAME’ records – ‘CNAME’ (canonical name) records are a pointer to another name already in DNS. A CNAME is always relative to the current domain unless it ends with a full stop (.), then it is known as “fully qualified”.

This is NOT web forwarding. http://www.some-url.tld/ is not a valid CNAME.

‘MX’ records – These control where your email goes. Be very careful with these, if you get this wrong you will lose email. You can’t point these at just any server, you have to have agreed this with the ISP that controls them. The ‘priority’ field in the MX records governs the order in which mail servers are tried in case one is unavailable. The lower the number, the higher the priority. An MX with a priority of ’10′ would be tried before one of ’20′. The highest priority one must be the one that ultimately accepts the mail, not one that will relay it on elsewhere.

These follow the same rules as CNAMEs regarding full qualification, and must end with a full stop if the ‘domain’ part is present, (e.g. mail.domain.com.).

Put simply, the A record holds the IP address the domain points to. The MX records list mailservers for the domain. They are used in order of lowest priority number to the greatest priority number. They are the servers which will handle emails sent to that domain. CName records create aliases, sending one subdomain to another. For example, you could forward ftp.example.com to uploads.example.com or something like that.

Copy from: http://aspxboy.com/private/1863/default.aspx

目前虚拟主机商提供将多个域名绑定到站点根目录,但是不提供类似cpanel那样可以将域名绑定到站点的子目录。
而当你手上有多个域名,网站空间和流量又有闲置的时候,是很希望
将这些资源利用起来,而且要做到降低做站的成本。而网络上流传的多域名绑到子目录多为判断HTTP_HOST再使用Asp的Response.Redirect或者php的header方法重订向到子目录去。这种方法在地址的请求上发生了变化,大家都知道Redirect的定向是很不友好的,在服务器端控制自动跳转会令访问者感到不安。
所以我需要的是对这个域名下面的所有请求都转接到对应的子目录里去
比如

http://www.xaradio.com/default.aspx
实际访问的是http://www.3pub.com/xaradio/default.aspx

http://www.xaradio.com/album.aspx?id=722
实际访问的是http://www.3pub.com/xaradio/album.aspx?id=722

http://www.xaradio.com/*.aspx
实际要访问到http://www.3pub.com/xaradio/*.aspx

而绑定到该站点根目录的其他域名和地址仍然不受影响
如: http://www.3pub.com/

我看美国虚拟主机的选择

1、全球最大的域名注册商是Godaddy,我建议注册域名可选这家公司,无论你是否需要在它那里购买主机。虽然很多主机商都提供买空间免费注册域名的服务,但是那样注册的域名控制权不在自己手里,比较被动。
Godaddy的主机也很不错,虽然它不是最便宜的、最好的,但是价格应该说够低了,2006年,其中一款共享主机:100GB的空间,1TB的月流量,支持MS SQL Server 或者MySQL数据库100M,每月支付6.29美元。Windows 主机的价格优势非常明显,其它服务商很难找到支持大容量SQL Server数据库的空间。另外Godaddy的控制面板也很独特,客户系统强大。
有很多人反映说大量的Godaddy的主机IP被中国屏蔽,这确实是事实,因为客户多,常有一些政治上或色情上的网站被中国大陆屏蔽。就算你购买的主机当前没有被屏蔽,也不能保证一直能被国内访问,因为Godaddy会不定期的将网站空间迁移到新服务器上,为的是保持均衡的网络负载。每次迁移后IP地址都将改变,一切都无法预知。
本站就是位于Godaddy,幸运的是被Godaddy迁移了3次,依旧没有问题,但是镜像站就没那么幸运了,在第三次迁移后,新的IP中国大陆无法访问,只好将主机转移到了 Hostony 上。

2、大多数主机商的服务质量是相当的好,明显超过国内。不过也有个别人遇到低劣的服务,主要体现在无法兑现30天内退款、客服email不响应、网站经常掉线等等。所以有时候也并非是价格越便宜越好,找个主流价格的主机商比较保险。
文档方面godaddy是最好的,详尽,1and1也不错,其余的主机商文档信息都比较少,不过也有一些主机商提供了flash向导,可以观看如何设置参数。 人工服务方面,Godaddy没话说,email响应都有倒计时的提示,电话支持也很到位。Hotony也非常的好,工作人员很耐心。不过Hostmonster本人觉得一般,不少国外的人反映服务差了些,email的反映速度时快时慢,也发生过无法兑现30天内退款的保证。

3、关于速度,主要是ftp上传速度,不同的主机商速度都不一样,快的话单线程可以达到30KB,我用宁波电信和网通测试过了,Godaddy的http下载速度可以达到最高200KB,ftp最高120KB(4线程),ping的速度保持在300-400ms之间,应该说比较快了。另外宁波的测试结果表明, hostmonster是最快的,据说他们的网络为亚洲用户优化过。
因为不同的地区访问美国的速度是不一样的,所以大家在购买前要先测试主机商的IP延迟,最好给他们写email,让他们提供一个具体客户的IP测试一下。
加入你的网站是面向全球用户的,那么很有必要知道不同国家访问主机商空间的速度,这里我提供几个不同国家的测试节点:(美国 意大利 英国 瑞士)
http://www.bbox.ch/default.asp?m=15
http://www.visualroute.it/vr.asp
http://visualroute.visualware.com/
http://webtrace.uni2.net/
顺便说一下 我发现Hostmonster的主机全球访问的速度很均衡,相当的快, Godaddy也不错。其余的总体不错,但是某些国家稍稍慢些。

4、大多数主机商支持信用卡和paypal,这很方便,另外有少数主机商在你订购后需要电话确认,Hostony就是这样的,他们会打电话来,要你说出注册时候的关键信息,比如绑定的域名等等。

5、个别主机商还提供免费迁移旧站点的数据到新主机上,这可是难得的服务啊!由于我主机上有99G的资料,假如我自己上传不知道得花多长时间呢,何况目前由于台湾地震,中国到美国的海底光缆未修复完毕,这项工作对我来说真是天方夜谭。幸好Hostony有这项服务,他们的服务人员花了近10天才把我的数据迁移完毕。

6、关于专用IP
美国的IP多如牛毛,所以就好比大理的大理石和昆明的鲜花,便宜得很。
你的网站是否需要专用IP?这取决于三个理由
一、你的网站流量大
二、你需要SSL链接,提供Https的服务。
三、你需要匿名ftp。
很多人认为专用IP对虚拟主机来说基本没用,觉得有没有虚拟主机的性能没有变化。不过从技术角度讲,假如你的网站稍稍有些知名度,专用IP还有有少许性能改进的,因为一个虚拟主机里可能有几十个空间在运行,同时有几百个web请求产生,在一个共享IP下服务器要依次来处理这些请求。
专用IP不同于静态IP,静态IP是不会变化的,而专用IP有时候会变化,这取决于服务商是否改变网络拓扑。所以就算你有了专用IP,最好也不要让别人只用IP来访问网站。
假如你的虚拟空间有朝一日大陆访问不了,十有八九就是IP被屏蔽了,此时假如服务商提供专用IP,你可以申请一个,一般都是2-3美元一个月。因为现在中国屏蔽Ip也不总是屏蔽一个网段,假如你的ip是88.70.75.68访问不了,试试ping 42 41 40 44 45看看,如果其它地址都可以访问,你就可以放心的去申请一个专用IP。(同时用VisualRoute看清楚附近的几个IP都属于同一个服务商)

最后这里给大家一个小工具 http://www.domaintools.com/reverse-ip/ ,输入你的主机IP,看看上面到底驻留了多少域名,数字越大,表明一台服务器上的空间数也越多。不过这个数字并非驻留的客户数,因为一个网站可以绑定很多域名。

Copy from: http://www.farely.com/msg.php?id=121

以这两个域名为例:

  http://www.knowsky.com/

  http://code.knowsky.com/

  这两个域名都是绑在同一个空间上,哈,但会跳到不同的目录,不是在IIS设置上实现的,只是一小段ASP代码,哈,。。。给出代码大家看看,虽然不是什么高深的东西,但挺实用的。

  Code: 以下是引用片段:

  <%
  ’取得HTTP输入的值并付值到HTOST中
  host=lcase(request.servervariables(“HTTP_HOST”))
  ‘开始条件跳转
  SELECT CASE host
  ’ 如果HOST的值是code.knowsky.com/就选择事件case”code.knowsky.com/”的命令
  CASE “code.knowsky.com/”
  ’ Below is the redirect command
  response.redirect “homepage/”
  CASE “www.knowsky.com”
  response.redirect “/”
  ’We use CASE ELSE to fix any other requests
  CASE ELSE
  response.redirect “/”
  END SELECT
  %>

Powered by WordPress | Theme: Motion by 85ideas.