Re: tell Apache to parse ALL (default) files as mod_ruby?

eko budi setiyo <[email protected]>
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
All link in http://www.haltebis.com is produce by php scripts and  I use 
.httaccess like this

#########################################
RewriteEngine On
RewriteRule ^index.php/(.*)/(.*) multidomain.php

RewriteRule ^index index/
RewriteRule ^index/(.*)/(.*) multidomain.php
#########################################

May be that can give you some idea.
Basicly every thing must go to multidomain.php scripts first.

Actually I am trying to port my FuseLogic 
[http://www.haltebis.com/index/wakka/main/FuseLogic] from PHP to 
mod_ruby, Until now I can't do it because of
[http://sg.php.net/manual/en/ref.outcontrol.php] function not available 
in ruby yet.

Regards
BoyNextDoor


Cameron McBride wrote:

>On Mon, Mar 01, 2004 at 11:38:52PM -0800, Ruby Baby wrote:
>  
>
>>I like for my webroot files not have an extention.
>>Maybe the HTML is generated by PHP today, but Ruby tomorrow.
>>
>>In PHP, to do this, I change my DefaultType in httpd.conf 
>>
>>DefaultType application/x-httpd-php
>>
>>Is there a way to make the DefaultType go through mod_ruby?
>>
>>To be clear, I want files like:
>>http://www.mydomain.com/myfile
>>... to make HTML generated by mod_ruby
>>... and not have to name it like:
>>http://www.mydomain.com/myfile.rbx
>>    
>>
>
>Instead of changing the default type with no extension, try making all 
>the HTML generated pages accessible via a '.html' extension.
>  e.g.  http://www.mydomain.com/myfile.html
>
>Now, to change the processing backend, you could use the Directory or
>Location directives.  I like to think of the 'Type' as what the visitor
>is getting - which is still HTML.
>
>Cameron
>
>
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.