Coldfusion 10在Windows 2k8 - .com /加载确定,但.com / index.cfm给出一个404 [英] Coldfusion 10 on Windows 2k8 - .com/ loads OK but .com/index.cfm gives a 404

查看:160
本文介绍了Coldfusion 10在Windows 2k8 - .com /加载确定,但.com / index.cfm给出一个404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置一个新的服务器(CF10 W2K8)由Pete Freitag的新CF10锁定指南。我有一个测试网站安装,如果我打开www.mydomain.com它加载默认文档(index.cfm)很好。然而,如果我尝试www.mydomain.com/index.cfm(或任何其他特定的.cfm页面),我得到404未找到。

I'm setting up a new server (CF10 W2K8) going by Pete Freitag's new CF10 lockdown guide. I have a test site installed and if I bring up www.mydomain.com it loads the default document (index.cfm) just fine. However, if I try www.mydomain.com/index.cfm (or any other specific .cfm page), I get a 404 not found.

IIS日志做记录404错误。如果我创建一个.htm / .html页面,它会很好。

IIS logs do record a 404 error. If I create a .htm/.html page it comes up fine.

推荐答案

我发现一些线程建议我重新运行安装了CF 10({cfroot})的Web服务器配置工具 \cfusion\runtime\bin\wsconfig.exe)。

I found some threads that suggested that I re-run the "Web Server Configuration Tool" that is installed with CF 10 ({cfroot}\cfusion\runtime\bin\wsconfig.exe).

我尝试了几个事情,包括使用服务器名称的添加...的localhost)。然后当我删除它(连接使用服务器的名称),我可以看到IIS命令执行删除所有的连接设置。我也删除了localhost连接。但是,使用添加...尝试添加localhost后从未工作。

I tried several things including "Add..." using the name of the server (instead of localhost). Then when I removed it (connections using the name of the server), I could see the IIS commands getting executed to remove all of the connection settings. I also removed the localhost connection. However, using "Add..." to attempt to add localhost back never worked.

因此,对我来说,此工具仅用于删除cfm / IIS设置允许CF工作。我的下一步是重新安装CF 10.但是,我发现一个链接到这个页面:

So, for me, this tool only worked for removing the cfm/IIS settings that allowed CF to work. My next step was going to be a reinstall of CF 10. However, I found a link to this page:

http://helpx.adobe.com/coldfusion/kb/coldfusion10-iis-manual-connector-configuration.html

我按照该网页上的说明操作,但有一些例外。我不需要按照步骤#1& #2。文件(isapi_redirect.dll)仍然存在。步骤#3 - #5已验证(文件存在,并在其中有正确的信息)。在完成步骤后,一切都正常工作,除了文档根文档( http://website.com/ )。所有我需要做的是将index.cfm添加为服务器范围的默认文档。 Adobe忘了他们的说明中的步骤。

I followed the instructions on that page with a few exceptions. I didn't need to follow steps #1 & #2. The file (isapi_redirect.dll) was still there. Steps #3 - #5 were verified (the files existed and had the correct information in them). Everything worked after I finished the steps, except document root documents (http://website.com/). All I had to do was add index.cfm as a server-wide "Default Document". Adobe forgot that step in their instructions.

我不知道为什么Web服务器配置工具无法在我的服务器上安装。我甚至试过运行它以管理员身份运行,但没有成功。

I don't know why the "Web Server Configuration Tool" failed to install on my server. I even tried running it "Run as administrator" with no success.

我必须将虚拟目录(CFIDE&jakarta)添加到服务器上的所有网站

I did have to add the virtual directories (CFIDE & jakarta) to all the sites on the server as well.

如果您有多个网站要管理,可以使用这些方便的命令行代码片段来加快此过程:

You can use these handy command-line snippets to speed up that process if you have multiple sites to manage:

rem add cfide虚拟目录(CF 10):

rem add cfide virtual directory (CF 10):

    %systemroot%\System32\inetsrv\appcmd add vdir /app.name:"site.com/" /path:/CFIDE /physicalPath:"{cfroot}\cfusion\wwwroot\CFIDE"

rem add jakarta虚拟目录(CF 10):

rem add jakarta virtual directory (CF 10):

    %systemroot%\System32\inetsrv\appcmd add vdir /app.name:"site.com/" /path:/jakarta /physicalPath:"{cfroot}\config\wsconfig\1"

只需将site.com和{cfroot}值替换为与您的服务器配合使用即可。

Just replace the "site.com" and {cfroot} values to work with your server.

这篇关于Coldfusion 10在Windows 2k8 - .com /加载确定,但.com / index.cfm给出一个404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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