找不到文件:/index.cfm

时间:2014-02-04 15:34:37

标签: apache coldfusion

我遇到这个奇怪的问题,ColdFusion没有找到任何.cfm文件。我得到File not found: /index.cfm即使它在那里。我已经测试过,看看我是否可以放入确切的路径...仍然没有找到它。我测试了.html页面并且有效。

我查了一下:

  • 文件/文件夹权限
  • Apache Config
  • 重新启动ColdFusion
  • ColdFusion正在运行

另外,我不认为Apache是​​问题,但这里是vhost

<VirtualHost *:80>
ServerName foo.bar.net
DocumentRoot "C:/websites/error"
ErrorLog "logs/error500.log"
CustomLog "logs/error500.log" common
<Directory "C:\websites\error">
   AllowOverride None
    Options -Indexes
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>

ColdFusion连接器:

# Load mod_jk module
LoadModule    jk_module  "C:\ColdFusion10\config\wsconfig\1\mod_jk.so"
# Where to find workers.properties
JkWorkersFile "C:\ColdFusion10\config\wsconfig\1\workers.properties"
JkMountFile "C:\ColdFusion10\config\wsconfig\1\uriworkermap.properties"
# Where to put jk logs
JkLogFile "C:\ColdFusion10\config\wsconfig\1\mod_jk.log"
# custom environment variables
JkEnvVar REDIRECT_URL
JkEnvVar REDIRECT_REMOTE_HOST
JkEnvVar REDIRECT_PATH
JkEnvVar REDIRECT_QUERY_STRING
JkEnvVar REDIRECT_HTTP_ACCEPT
JkEnvVar REDIRECT_HTTP_USER_AGENT
JkEnvVar REDIRECT_REMOTE_ADDR
JkEnvVar REDIRECT_SERVER_NAME
JkEnvVar REDIRECT_SERVER_PORT
JkEnvVar REDIRECT_SERVER_SOFTWARE
# Where to put jk shared memory
JkShmFile "C:\ColdFusion10\config\wsconfig\1\jk_shm"
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf
DirectoryIndex index.cfm
#Alias /CFIDE "C:\ColdFusion10\cfusion\wwwroot\CFIDE"
#<Directory "C:\ColdFusion10\cfusion\wwwroot\CFIDE">
#Options Indexes FollowSymLinks
#AllowOverride None
#Order allow,deny
#Allow from all
#</Directory>

# /CFIDE/scripts should be available globally
Alias /CFIDE/scripts "C:\ColdFusion10\cfusion\wwwroot\CFIDE\scripts"
<Directory "C:\ColdFusion10\cfusion\wwwroot\CFIDE\scripts">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Files ~ ".hbmxml$">
Order allow,deny
Deny from all
</Files>

0 个答案:

没有答案