dispatch.fcgi not found on this server

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 [email protected]
    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>
不知道什么原因啊。。

你可能感兴趣的:(apache,Access,Ruby,Rails)