bugx 发表于 2013-1-29 23:53:01

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 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>
不知道什么原因啊。。
页: [1]
查看完整版本: dispatch.fcgi not found on this server