如何让.COM使用IIS6在Win2003的R2 x64的URL路径? [英] how to allow .com in a url path using IIS6 on Win2003 R2 x64?

查看:176
本文介绍了如何让.COM使用IIS6在Win2003的R2 x64的URL路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎IIS6在Win2003的R2企业x64 SP2不会允许你使用.COM的URL路径。

it seems IIS6 on Win2003 R2 Enterprise x64 SP2 will not allow you to use .com in a url path.

例如,如果我在我的网站根目录下创建一个文件夹foo.com,包含Default.htm的,这个网址出现了404:

e.g if i create a folder foo.com in my web root, containing a default.htm, this url results in a 404:

HTTP://localhost/foo.com/default.htm

不过,下面就Win2003的R2标准的x86 SP2和IIS6完全相同的步骤的将会的成为了该文件就好了。

however, following the exact same steps on Win2003 R2 Standard x86 SP2, and IIS6 will serve up the file just fine.

无论是服务器的URLScan安装。

Neither server has urlscan installed.

有没有办法告诉IIS6在Win2003的64位,允许.COM的URL路径?

Is there a way to tell IIS6 on Win2003 x64 to allow .com in a url path?

推荐答案

确定问题就迎刃而解了。这个职位,而不是直接给出答案,给了我足够一个线索:

ok problem solved. this post, whilst not directly giving the answer, gave me enough of a clue:

<一个href="http://blogs.msdn.com/david.wang/archive/2005/10/17/HOWTO-Allow-file-downloads-including-exe-on-IIS-6-Part-2.aspx"相对=nofollow>王大卫的博客

基本上,我的64位IIS网站有它的执行权限设置脚本和可执行文件 而我的X86 IIS网站设置仅脚本

Basically, my x64 IIS site had it's execute permissions configured "Scripts AND executables" whereas my X86 IIS site was configured "Scripts Only"

如此看来,尽管.COM只出现在我的网址路径,IIS是把它当作一个可执行文件,它没有任何应用程序映射因此HTTP 404

So it seems that, even though .com was only appearing in the path of my url, IIS was treating it as an executable file, for which it has no application mapping hence the HTTP 404

这篇关于如何让.COM使用IIS6在Win2003的R2 x64的URL路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆