Forum: Ruby on Rails RE: Anyone have Ruby for IIS installer?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
60e38de043848f82392062088f191213?d=identicon&s=25 Hogan, Brian P. (Guest)
on 2006-02-13 18:34
(Received via mailing list)
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
</Directory>


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
E2489efc6ec10ec818b71965909ea109?d=identicon&s=25 Jin Lee (Guest)
on 2006-02-13 18:38
(Received via mailing list)
/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
171c44a0c5fe6f202212984f02cf35a2?d=identicon&s=25 bob (Guest)
on 2006-02-19 03:22
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)
771d3934c5bd53b76c95b4429c38ae0c?d=identicon&s=25 Erwin Quita (erwinquita)
on 2006-03-03 04:13
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
> </Directory>
>
>
> 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
771d3934c5bd53b76c95b4429c38ae0c?d=identicon&s=25 Erwin Quita (erwinquita)
on 2006-03-03 05:01
(Received via mailing list)
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
This topic is locked and can not be replied to.