27 Sep 15:31
Re: SCGI + apache solution
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@...>: > 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@... > 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.
RSS Feed