Apache下配置rails的问题

willsan 2008-04-17 10:45:15
以前是rails在webrick下运行,现在想把rails在Apache下运行,但并不希望使用CGI,vss是rails工程目录,在Apache的httpd.conf配置中加入以下语句

DocumentRoot "D:/Program Files/Apache Group/Apache2/htdocs"
ErrorLog "D:/Program Files/Apache Group/Apache2/htdocs/vss/log/server.log"
<Directory "D:/Program Files/Apache Group/Apache2/htdocs/vss/public">
Options ExecCGI FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>

出现错误
Apache/2.0.54 (Win32) configured -- resuming normal operations
Server built: Apr 16 2005 14:25:31
Parent: Created child process 3328
Child 3328: Child process is running
Child 3328: Acquired the start mutex.
Child 3328: Starting 250 worker threads.
[error]File does not exist: D:/Program Files/Apache Group/Apache2/htdocs/vss/rails
Child 2436: All worker threads have exited.
Child 2436: Child process is exiting

rails是我定义在routes.rb里的
ActionController::Routing::Routes.draw do |map|
map.connect ':controller/service.wsdl', :action => 'wsdl'
Install the default route as the lowest priority.
map.connect 'rails/:controller/:action/:id.:format'
map.connect 'rails/:controller/:action/:id'
map.connect 'rails/', :controller => 'login', :action => 'login'
end

请教大虾指点一二

...全文
114 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
willsan 2008-05-05
  • 打赏
  • 举报
回复
没有人帮忙……我再等等看,也许会有奇迹
knowledge_Is_Life 2008-05-01
  • 打赏
  • 举报
回复
不知,帮顶
UltraBejing 2008-05-01
  • 打赏
  • 举报
回复
支持搂主,收藏

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧