Curt Hibbs | 27 Sep 15:56
Picon

Re: SCGI + apache solution

Yikes! Isn't there a better way?

I'm no apache expert, so maybe this is as good as it gets. But I'd sure like to find something better if anyone has any ideas... esepcially, as Yufan says, if we can avoid any configuration in the rails application's directories.

Curt

On 9/27/05, yufan shi <yufanshi <at> gmail.com> wrote:
Hi Kyle, now I understand your solution very well. It's good enough to
fix the url handling issue.
It's better if we could avoid config for this in rails application's directory.
Nice job!


2005/9/27, Kyle Maxwell < kyle-FOSOgQihYpQjo0HpFSRKWA@public.gmane.org>:
> The following fixes caching, etc in Apache + SCGI.  It would be nice
> to not have to repeat oneself in the routes file, but I'm sure someone
> can come up with a solution for that.  Doubling up the routes lets the
> first route generate a clean url_for, and the second one handles the
> actual redirected url.
>
> Kyle Maxwell
>
> #in httpd.conf
> SCGIMount /scgi-bin/ 127.0.0.1:9999
>
> #in .htaccess, replace the dispatch.(f)cgi line with:
> RewriteRule ^(.*)$ /scgi-bin/$1 [QSA,L]
>
> #in routes.rb, double up *each* of your routes as so:
> map.connect ':controller/:action/:id'
> map.connect 'scgi-bin/:controller/:action/:id'
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Regards.

Yufan
===========================
Feed-Tank.com : Easy to use online feeds aggregator and reader.
FT80off: Use this code to get up to $80 off for any dreamhost hosting plan.
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/r74wrMN1lrk@public.gmane.orgg
http://lists.rubyonrails.org/mailman/listinfo/rails

_______________________________________________
Rails mailing list
Rails@...
http://lists.rubyonrails.org/mailman/listinfo/rails

Gmane