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

Cameron McBride <[email protected]>
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <20040302130330.GA4183@localhost>
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.