我在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