# \[ANN\] Howtos: Deploying Rails on Windows servers

**URL:** <https://www.ruby-forum.com/t/ann-howtos-deploying-rails-on-windows-servers/60243>\
**Category:** Rails\
**Created:** [May 11, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/ann-howtos-deploying-rails-on-windows-servers/60243 "2006-05-11T15:27:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a587f6/32.png) [@kuma](https://www.ruby-forum.com/u/kuma)\
**Post date:** [May 11, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/ann-howtos-deploying-rails-on-windows-servers/60243/1 "2006-05-11T15:27:01Z")

</div>

After a lot of work (and much promising) I have written instructions  
on various methods to deploy Rails applications in a Windows  
environment. For those of you who are not stuck with Windows, this  
won’t matter too much to you, but I think this is really useful for  
those in Windows shops.

Topics covered:

- Serving Multiple Rails Applications on Windows with Apache and  
Mongrel

- Integrate Rails into an Existing IIS Web infrastructure using Apache  
and FastCGI

- Integrate Rails into an Existing IIS Web infrastructure using Mongrel

- Integrate Rails into an Existing IIS Web Infrastructure using  
Lighttpd and Mongrel

Visit [Deployment Strategies for Rails on Windows servers | New Auburn Personal Computer Services LLC](http://www.napcs.com/howto/rails/deploy/) to download the  
articles. Let me know what you think!

---

<div class="post-metadata">

**Author:** ![kuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a587f6/32.png) [@kuma](https://www.ruby-forum.com/u/kuma)\
**Post date:** [May 11, 2006, 9:53pm UTC](https://www.ruby-forum.com/t/ann-howtos-deploying-rails-on-windows-servers/60243/2 "2006-05-11T21:53:59Z")

</div>

On Thu, 2006-05-11 at 08:25 -0500, Brian H. wrote:

> - Integrate Rails into an Existing IIS Web infrastructure using Apache  
> and FastCGI
> 
> - Integrate Rails into an Existing IIS Web infrastructure using Mongrel
> 
> - Integrate Rails into an Existing IIS Web Infrastructure using  
> Lighttpd and Mongrel
> 
> Visit [Deployment Strategies for Rails on Windows servers | New Auburn Personal Computer Services LLC](http://www.napcs.com/howto/rails/deploy/) to download the  
> articles. Let me know what you think!

Nice Brian, I’m starting the documentation pages for Mongrel, and I’ve  
listed your site in the other documentation section:

[http://mongrel.rubyforge.org/docs/index.html](http://mongrel.rubyforge.org/docs/index.html)

Let me know if you want to write the “Best Practice Win32 Deployment”  
document. It’d basically be a short straight line version of what  
you’ve got there, with references to your stuff for more detailed  
instructions.

–  
Zed A. Shaw

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![kuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a587f6/32.png) [@kuma](https://www.ruby-forum.com/u/kuma)\
**Post date:** [May 11, 2006, 10:32pm UTC](https://www.ruby-forum.com/t/ann-howtos-deploying-rails-on-windows-servers/60243/3 "2006-05-11T22:32:15Z")

</div>

Zed:  
I’d be happy to.

---

<div class="post-metadata">

**Author:** ![kuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a587f6/32.png) [@kuma](https://www.ruby-forum.com/u/kuma)\
**Post date:** [May 11, 2006, 10:51pm UTC](https://www.ruby-forum.com/t/ann-howtos-deploying-rails-on-windows-servers/60243/4 "2006-05-11T22:51:27Z")

</div>

On 5/11/06, Brian H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > those in Windows shops.

This is mildly OT but do you have any recommendations with your  
mod\_proxy-\>mongrel setup for handling caching? Because just looking  
through  
the doc, I don’t see how you’ll be able to accomodate rails’s built in  
caching mechanisms. Any information you can provide would be great,

thanks.

---

<div class="post-metadata">

**Author:** ![kuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a587f6/32.png) [@kuma](https://www.ruby-forum.com/u/kuma)\
**Post date:** [May 12, 2006, 12:54am UTC](https://www.ruby-forum.com/t/ann-howtos-deploying-rails-on-windows-servers/60243/5 "2006-05-12T00:54:04Z")

</div>

I actually mention that… however, according to Zed:

“Mongrel (as of 0.3.7) by default supports Rails style page caching in  
the RailsHandler it uses to serve your applications. What this means  
is that if you do a page cached action (which writes a .html file as  
well as respond) then Mongrel will just serve up the cached page  
instead of bug Rails.”

Now, I know Lighttpd and Apache can serve static stuff up much faster,  
but at least it’s not like Rails gets invoked on every request.

I am investigateing several solutions for this right now and will  
probably publish my findings at the same web site. It’s definitely an  
issue that concerns me.

---

<div class="post-metadata">

**Author:** ![kuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a587f6/32.png) [@kuma](https://www.ruby-forum.com/u/kuma)\
**Post date:** [May 12, 2006, 1:03am UTC](https://www.ruby-forum.com/t/ann-howtos-deploying-rails-on-windows-servers/60243/6 "2006-05-12T01:03:16Z")

</div>

On May 11, 2006, at 1:50 PM, Tanner B. wrote:

> This is mildly OT but do you have any recommendations with your  
> mod\_proxy-\>mongrel setup for handling caching? Because just  
> looking through the doc, I don’t see how you’ll be able to  
> accomodate rails’s built in caching mechanisms. Any information  
> you can provide would be great,

Here’s some Apache config stuff from a previous post to the Rails  
list. It handles static content via Apache and proxies the rest  
to Mongrel.

# Serve static request with Apache

RewriteCond %{DOCUMENT\_ROOT}/%{REQUEST\_FILENAME} -f

# Serve server-info and server-status with Apache

RewriteRule . - [last]  
RewriteCond %{REQUEST\_URI} ^/(server-info|server-status)

# Everything else goes to Mongrel

RewriteRule . - [last]  
RewriteRule ^/(.\*)$ balancer://proxy\_group/$1 [proxy]

# This defines where the mongrels are

\<Proxy balancer://proxy\_group\>  
BalancerMember [http://127.0.0.1:7000](http://127.0.0.1:7000)  
BalancerMember [http://127.0.0.1:7001](http://127.0.0.1:7001)

# This handles the reverse proxying

ProxyPassReverse / balancer://proxy\_group/

If anyone wants to write this up, go for it. Just give me an  
attribution, please. 🙂

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![kuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a587f6/32.png) [@kuma](https://www.ruby-forum.com/u/kuma)\
**Post date:** [May 12, 2006, 1:18am UTC](https://www.ruby-forum.com/t/ann-howtos-deploying-rails-on-windows-servers/60243/7 "2006-05-12T01:18:48Z")

</div>

The commenting was a bit off, sorry for that. This fixes that.

Again, if anyone wants to write this up, go for it. Just give me  
an attribution, please. 🙂

> RewriteRule . - [last]
> 
> # This handles the reverse proxying
> 
> ProxyPassReverse / balancer://proxy\_group/

–  
– Tom M.
