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

Neil Stevens <[email protected]>
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday March 01, 2004 11:38 pm, 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

You could have the files on the server still be rbx, and mod_rewrite the 
externally visible URLs to the internal implementations.  That's what I 
tend to do.

- -- 
Neil Stevens - [email protected]

"It's snowing, it's snowing! God, I hate this weather."
    They Might Be Giants, __New York City__
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFARJKuf7mnligQOmERAsCwAJ4xaVVawgtrnyC2UikBThg9ym1ufgCfTaRS
ZJU1SQOnjW+u6mKRibncJAE=
=IaVi
-----END PGP SIGNATURE-----
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.