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!

-- 
Posted via http://www.ruby-forum.com/.