论坛首页 入门技术论坛

dispatch.fcgi not found on this server

浏览 3202 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-05-23  
Not Found

The requested URL /dispatch.fcgi was not found on this server.

出现这样的问题。有没有谁碰到过呢。直接访问host/dispatch.fcgi出现了dispatch.fcgi的源代码,没做任何解析。
APACHE配置了
LoadModule rewrite_module modules/mod_rewrite.so
loadModule fcgid_module modules/mod_fcgid.so

<IfModule mod_fcgid.c>
  #AddHandler fcgid-script .fcgi .fpl
  IPCCommTimeout 40
  IPCConnectTimeout 10
  DefaultInitEnv RAILS_ENV production
  SocketPath /tmp/fcgidsock
  SharememPath /tmp/fcgidshm
</IfModule>

然后开启了vhosts.conf的配置

<VirtualHost *:80>
    ServerAdmin bugx@nowans.com
    DocumentRoot /var/www/www.cnbooker.com/public
    ServerName www.cnbooker.com
    ServerAlias cnbooker.com
    AddHandler fcgid-script .fcgi .fpl
FCGIWrapper "/usr/bin/ruby /var/www/www.cnbooker.com/public/dispatch.fcgi" .fcgi
    ErrorLog logs/www.cnbooker.com-error_log
    CustomLog logs/www.cnbooker.com-access_log common
         <Directory "/var/www/www.cnbooker.com/public">
                Options Indexes ExecCGI FollowSymLinks
                AllowOverride all
                Order Deny,Allow
                Allow from All
        </Directory>
    RewriteEngine On
</VirtualHost>
不知道什么原因啊。。
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics