From: Justin Collins Date: 2011-01-27T12:06:28+09:00 Subject: Re: rhtml and apache trouble On 01/26/2011 02:36 PM, Mitul Ti wrote: > Justin Collins wrote in post #977732: > >> On 01/26/2011 01:40 PM, Mitul Ti wrote: >> >>> Testing<% foo = "Ruby"; print "#{foo}!" %> >>> >>> >>> of the time the error occurred, and anything you might have done that >>> headers: test.rhtml >>> >>> >> Your .rhtml files shouldn't be in cgi-bin/, they should be in >> public_html/ or similar. Looks like Apache's trying to execute the >> .rhtml file, which isn't an executable. >> >> -Justin >> > > Thanks Justin for your comments! > > I tried keeping .rhtml file in htdocs directory (DocumentRoot directory) > and I double checked the permission: > > -rwxr-xr-x test.rhtml* > > But I am still getting the same error. Any ideas? Thanks! > > Are you using http://localhost/test.rhtml as the URL?