Re: Upgrading from
Ben Gribaudo <[email protected]> Fri, 15 Sep 2006 10:50:58 -0500
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Having more time to investigate this today, I confirmed a suspicion that adding an Apache "AddType text/html .rhtml" directive would fix the problem. Any ideas as to what changed during the upgrade to require this previously unnecessary directive?? Is the need for this instruction something that should be documented on the Wiki? Ben Ben Gribaudo wrote: > After upgrading a development server from Ubuntu 5.10 to 6.06 (using > apt-get distro-upgrade), Apache started returning our rhtml pages with > a content type of application/x-httpd-eruby (instead of text/html as > it did before the upgrade). mod_ruby returns > application/x-httpd-eruby. This causes web browsers to show a "Do you > want to download this file and open it or save it?" dialog box > instead of displaying the page. The content returned in the file has > been parsed by eruby--all Ruby code has been processed and appropriate > HTML has been outputted.