From: Carl Youngblood Date: 2004-06-23T03:06:42+09:00 Subject: Re: mod_ruby and Apache ForceType One other approach that I've used is to use mod_rewrite to cause some scripts to be interpreted as ruby scripts. In this case I am causing certain URLS to be transparently redirected to a fastcgi script that happens to be a ruby script: RewriteEngine on RewriteLog logs/rewrite_log RewriteLogLevel 0 # don't use controller to process requests for static files RewriteCond %{REQUEST_URI} .*\.(gif|jpg|png|css|js)$ RewriteRule .* - [L] # send all other requests into the controller ruby script RewriteRule ^.*$ /controller.fcgi [L,T=fastcgi-script] On Tue, 22 Jun 2004 20:28:12 +0900, George Moschovitis wrote: > > Hello everyone, > > I am trying to use the ForceType directive of apache > to get more readable urls, like this php based example: > > > ForceType application/x-httpd-php > > > Does anyone know what is the equivalent of > application/x-httpd-php for mod_ruby? > > I tried the following but failed: > > AddType application/x-httpd-ruby .sx > AddHandler ruby-object .sx > > ForceType application/x-httpd-ruby > > > Any help will be really appreciated! > > George Moschovitis