六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 333|回复: 0

dispatch.fcgi not found on this server

[复制链接]

升级  10%

1

主题

1

主题

1

主题

童生

Rank: 1

积分
5
 楼主| 发表于 2013-1-29 23:53:01 | 显示全部楼层 |阅读模式
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>
不知道什么原因啊。。
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表