我在MAC OS Leopard上建立了一个新的RoR项目,创建了一个仓库,svn添加了整个Rails项目,提交,在我的站点检出,建立了一个虚拟主机(见下文),我无法访问新的控制器我创建的页面(/ mycontroller/index)。我可以进入“Welcome Aboard”页面。我有另一个运行Apache的Ruby安装(Redmine项目管理软件)。控制器页面在新的RoR项目中无法访问...为什么?
我得到这个:
Not Found
The requested URL /developer was not found on this server.
Apache/2.2.8 (Ubuntu) mod_fastcgi/2.4.6 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_scgi/1.12 Server at colorubooks.chadjohnson.ath.cx Port 8080
这里是我的虚拟主机设置:
<VirtualHost *:80>
ServerName mysite.mydomain.ath.cx
ServerAdmin [email protected]
DocumentRoot /srv/www/mysite.mydomain.ath.cx/public
RailsEnv development
<Directory "/srv/www/mysite.mydomain.ath.cx/public">
Options Indexes ExecCGI FollowSymLinks -MultiViews
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>
您是否创建了启用dispatch.fcgi的.htaccess文件?检查文件权限?检查了你的apache日志文件? – 2009-12-20 01:11:57
好的!我从Redmine复制了dispatch.fcgi文件,并且得到了 很抱歉,但出现了一些问题。 “我们已收到有关此问题的通知,我们很快就会查看。” 那么,有没有一种标准的方式来安装/启用dispatch.fcgi的东西?你能通过我的链接? – 2009-12-20 09:18:33