# RE: Anyone have Ruby for IIS installer?

**URL:** <https://www.ruby-forum.com/t/re-anyone-have-ruby-for-iis-installer/67159>\
**Category:** Rails\
**Created:** [February 13, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/re-anyone-have-ruby-for-iis-installer/67159 "2006-02-13T18:34:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [February 13, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/re-anyone-have-ruby-for-iis-installer/67159/1 "2006-02-13T18:34:34Z")

</div>

Yes. I can… very soon. I’m about 90% done with the tutorial.

here’s the basic concept:

IIS (80) Apache (8080)  
================= ========================  
/  
/blog /blog  
/wiki /wiki  
/code /code  
/about

Each rails app is configured as an Alias all on one VHOST

Apache conf :

Alias /code “e:/rails/blog/public”  
FastCgiServer e:/rails/blog/public/dispatch.fcgi -idle-timeout 120  
-initial-env RAILS\_ENV=production -processes 1  
\<Directory e:/rails/blog/public\>  
Options ExecCGI FollowSymlinks  
AllowOverride All

ISAPI rewrite rule: (one for each rails app)

RewriteProxy /blog(.\*) http://internal.server.com:8080/blog$1 [I,U]

You need to do this for each app.

You also need to modify RewriteBase in your Rails .htaccess file.

Calls to “url\_for” can sometimes reveal the backend server. My way  
around that has been to make sure that Apache runs on the SAME BOX as  
IIS. I then wrote a simple plugin which I will be sharing that you can  
place in your production app to remove the :8080 proxy when url\_for is  
used. (requests then route back through IIS).

That’s the summary. I’ll be publishing the full howto later today or  
tomorrow.

-Brian

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [February 13, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/re-anyone-have-ruby-for-iis-installer/67159/2 "2006-02-13T18:38:20Z")

</div>

/thumbsup

That RewriteProxy line was what I needed to most.

Which ISAPIRewrite are you using?

Thanks for the tip, looking forward to the full tutorial,

Jin

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [February 19, 2006, 3:22am UTC](https://www.ruby-forum.com/t/re-anyone-have-ruby-for-iis-installer/67159/3 "2006-02-19T03:22:19Z")

</div>

IIS (80) Apache (8080)  
================= ========================  
/  
/blog /blog  
/wiki /wiki  
/code /code  
/about  
…

> That’s the summary. I’ll be publishing the full howto later today or  
> tomorrow.

This is exactly what i need! Where can I find the howto? (sorry if  
this comes out twice)

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [March 3, 2006, 4:13am UTC](https://www.ruby-forum.com/t/re-anyone-have-ruby-for-iis-installer/67159/4 "2006-03-03T04:13:44Z")

</div>

Hogan, Brian P. wrote:

> Yes. I can… very soon. I’m about 90% done with the tutorial.
> 
> here’s the basic concept:
> 
> IIS (80) Apache (8080)  
> ================= ========================  
> /  
> /blog /blog  
> /wiki /wiki  
> /code /code  
> /about
> 
> Each rails app is configured as an Alias all on one VHOST
> 
> Apache conf :
> 
> Alias /code “e:/rails/blog/public”  
> FastCgiServer e:/rails/blog/public/dispatch.fcgi -idle-timeout 120  
> -initial-env RAILS\_ENV=production -processes 1  
> \<Directory e:/rails/blog/public\>  
> Options ExecCGI FollowSymlinks  
> AllowOverride All
> 
> ISAPI rewrite rule: (one for each rails app)
> 
> RewriteProxy /blog(.\*) http://internal.server.com:8080/blog$1 [I,U]
> 
> You need to do this for each app.
> 
> You also need to modify RewriteBase in your Rails .htaccess file.
> 
> Calls to “url\_for” can sometimes reveal the backend server. My way  
> around that has been to make sure that Apache runs on the SAME BOX as  
> IIS. I then wrote a simple plugin which I will be sharing that you can  
> place in your production app to remove the :8080 proxy when url\_for is  
> used. (requests then route back through IIS).
> 
> That’s the summary. I’ll be publishing the full howto later today or  
> tomorrow.
> 
> -Brian

Hi Brian,

```
 Good day, Have you published your Apache IIS howto? where can we 

```

find it? If you happen to have even the simple text info. please can you  
send it to me. I really need it badly. I’ve been struggling to make it  
work. Any help would be appreciated.

regards,  
Erwin

---

<div class="post-metadata">

**Author:** ![HoganS\_Brian\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@HoganS\_Brian\_P](https://www.ruby-forum.com/u/HoganS_Brian_P)\
**Post date:** [March 3, 2006, 5:01am UTC](https://www.ruby-forum.com/t/re-anyone-have-ruby-for-iis-installer/67159/5 "2006-03-03T05:01:29Z")

</div>

erwin quita wrote:

> > /wiki /wiki  
> > \<Directory e:/rails/blog/public\>
> > 
> > tomorrow.
> 
> regards,  
> Erwin

Oh, I forgot this is my working environment… let me know if it would  
affect the setup…

Ruby version 1.8.4 (i386-mswin32)  
RubyGems version 0.8.11  
Rails version 1.0.0  
Active Record version 1.13.2  
Action Pack version 1.11.2  
Action Web Service version 1.0.0  
Action Mailer version 1.1.5  
Active Support version 1.2.5  
Application root D:/mailer  
Environment production  
Database adapter postgresql
