# Problem configuring Tomcat to handle .rhtml

**URL:** <https://www.ruby-forum.com/t/problem-configuring-tomcat-to-handle-rhtml/117895>\
**Category:** Ruby\
**Created:** [October 22, 2007, 7:25am UTC](https://www.ruby-forum.com/t/problem-configuring-tomcat-to-handle-rhtml/117895 "2007-10-22T07:25:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [October 22, 2007, 7:25am UTC](https://www.ruby-forum.com/t/problem-configuring-tomcat-to-handle-rhtml/117895/1 "2007-10-22T07:25:53Z")

</div>

Hi All,

I’m trying to get my installed Apache Tomcat 6.0 to properly  
process ://localhost:8080/Whatever.rhtml, where this file contains  
embedded Ruby.

I consulted %CATALINA\_HOME%/webapps/docs/cgi-howto.html on mt WinXP/  
SP2 system.

It directed me to “Remove the XML comments from around the CGI servlet  
and servlet-mapping configuration in $CATALINA\_BASE/conf/web.xml.”

I did that, but I also reviewed the comments immediately preceding  
that configuration. It said “IMPORTANT: To use the CGI servlet, you  
also need to rename the $CATALINA\_HOME/server/lib/servlets-  
cgi.renametojar file to $CATALINA\_HOME/server/lib/servlets-cgi.jar”.

However, there is no %CATALINA\_HOME%/server folder on my system.

Is there a better guide on how to do this? Any other ideas?

Thanks in Advance,  
Richard

P.S. I posted this and a related question on  
alt.apache.configuration. However, they garnered no responses over  
there.
