Configuring struts file extensions in Apache web server


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.


    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 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.

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