使用Mongrel替代scgi at Caiwangqin’s blog
来源:百度文库 编辑:神马文学网 时间:2024/04/28 11:32:59
之前在Windows计算机上开发Rails Application , 使用的是lighttpd+scgi, 后来看到Mongrel升级了,但由于不支持Ruby 1.8.2 ,所以一直都没有更换。前几天由于需要使用Multibyte for Rails , 将Ruby 1.8.2 升级为了 1.8.4版本,所以将原来开发环境中使用的lighttpd+scgi 也更换为了lighttpd+Mongrel ,这是在Windows平台下开发RubyonRails应用的首选,附安装步骤:
1.安装Mongrel
$ gem install win32-service (pick the most recent one)
$ gem install mongrel (pick the win32 pre-built)
$ gem install mongrel_service
2.运行Mongrel服务(多个应用)
$ mongrel_rails service::install -N myapp1 -c c:mypathtomyapp1 -p 4000 -e production $ mongrel_rails service::start -N myapp1$ mongrel_rails service::install -N myapp2 -c c:mypathtomyapp2 -p 4001 -e production $ mongrel_rails service::start -N myapp2
3.配置Lighttpd
server.modules = (”mod_proxy”,
“mod_rewrite”,
“mod_accesslog”,
“mod_alias” )
$HTTP[”url”] =~ “^/myapp1/” {
proxy.server = (”" => (
(”host” => “127.0.0.1″,”port” => 4000)
)
)
}
$HTTP[”url”] =~ “^/myapp2/” {
proxy.server = (”" => (
(”host” => “127.0.0.1″,”port” => 4001)
)
)
}
3.访问路径
http://localhost/myapp1
http://localhost/myapp2
1.安装Mongrel
$ gem install win32-service (pick the most recent one)
$ gem install mongrel (pick the win32 pre-built)
$ gem install mongrel_service
2.运行Mongrel服务(多个应用)
$ mongrel_rails service::install -N myapp1 -c c:mypathtomyapp1 -p 4000 -e production $ mongrel_rails service::start -N myapp1$ mongrel_rails service::install -N myapp2 -c c:mypathtomyapp2 -p 4001 -e production $ mongrel_rails service::start -N myapp2
3.配置Lighttpd
server.modules = (”mod_proxy”,
“mod_rewrite”,
“mod_accesslog”,
“mod_alias” )
$HTTP[”url”] =~ “^/myapp1/” {
proxy.server = (”" => (
(”host” => “127.0.0.1″,”port” => 4000)
)
)
}
$HTTP[”url”] =~ “^/myapp2/” {
proxy.server = (”" => (
(”host” => “127.0.0.1″,”port” => 4001)
)
)
}
3.访问路径
http://localhost/myapp1
http://localhost/myapp2
使用Mongrel替代scgi at Caiwangqin’s blog
对SCGI/Mongrel的作者的访谈(关于Rails企业级应用、放弃SCGI等的言论) ...
策划开发一个项目 at onling’s blog
FastCGI, SCGI, and Apache: Background and Future at VMUNIX Blues
Mongrel -- 中文名叫杂种_Darkbull‘s darksky
At Bertram's Hotel
PJBlog2使用技巧(3) - 如何自定义分类 - PuterJam‘s Blog
yeer’s blog 免费电话JAJAH使用教程
proftpd使用FAQ整理 - Alpha’s blog …
英文标点符号的使用[zz] | Jeffrey's Blog
R|Mail:使用Gmail邮箱备份Blog步骤详解 - Linghucong‘S BLOG...
China's poor stubbornly stuck at bottom
Breakfast at Tiffany's(上)
Breakfast at Tiffany's(中)
Breakfast at Tiffany's(下)
Bloggers Block: Blog Tips at ProBlogger
本人BLOG所用插件介绍 at Runaway
在Windows平台使用Apache2.2和Mongrel运行Ruby on Rails
如何添加 WordPress 2.3 标签到你使用的主题 | Mylsd's blog
Kongove’s Page ? Blog Archive ? 使用Vim Ctags Cscope阅读源代码
摩托罗拉 Q8常用的修改以及使用技巧 - Roc's Blog - 博客大巴
使用Spry轻松将XML数据显示到HTML页 - cnBruce's Blog | 布鲁斯...
二极管分类、使用场合、参数识别 稳压管 -- Lxz135790's Blog
What is a Blog : Blog Tips at ProBlogger