Configuring struts file extensions in Apache web server

Discussions

Web tier: servlets, JSP, Web frameworks: Configuring struts file extensions in Apache web server

  1. Hi,
    I am working on Struts and I have configured my struts application on Tomcat 4.0 running on
    Windows 2000 and its working fine. I have changed the extension of struts files from *.do to
    *.abc for testing purpose. And even this is working fine.

      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.abc</url-pattern>
      </servlet-mapping>


    I now uploaded the struts files to remote Linux server that is having Apache Web server configured with Tomcat. So any request is first handled by Apache web server.

    If I enter any URL http://myhost.com/test1.abc I get 404 File not found but the same was working in my machine(Windows + Tomcat).

    I do not know about Apache web server. Can someone throw some light on me to what needs to be done to make this app work? Do I have to configure anything on Apache to support *.abc extensions? Please let me know how to do it.

    Thanks
    Uma
  2. You should tell Apache to push *.abc to servlet container.
    For example,append "[uri:/*.abc]" to worker2.properties if u use jk2,tomcat,apache.