default mod_ruby.conf is wrong
Dick Davies <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
I've just noticed a problem with the FilesMatch directive in the default mod_ruby.conf shipped with mod_ruby. FilesMatch ".rhtml" actually gets read as a regular expression. Try creating a file called testrhtml.txt and you'll see what I mean. It will cause more serious problems for files containing rbx, as they will be mistaken for ruby CGI scripts. This is better: 0rasputin@lb:httpd$ cvs diff cvs diff: Diffing . Index: mod_ruby.conf =================================================================== RCS file: /data/cvsroot/etc/httpd/mod_ruby.conf,v retrieving revision 1.1.1.1 diff -r1.1.1.1 mod_ruby.conf 7c7 < <FilesMatch ".rbx"> --- > <FilesMatch "\.rbx$"> 16c16 < <FilesMatch ".rhtml"> --- > <FilesMatch "\.rhtml$">