To map an entire directory, uncomment in $CATALINA_HOME/conf: <servlet-mapping> <servlet-name>cgi</servlet-name> <url-pattern>/cgi-bin/*</url-pattern> </servlet-mapping>

To map another directory called cowbell:
    <servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>/cowbell/*</url-pattern>
    </servlet-mapping>

To map *.cgi, add this instead:
    <servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>*.cgi</url-pattern>
    </servlet-mapping>

You can't mix path and extension. (The spec doesnt allow that)

-Tim

Yochi Toledano wrote:

Hi Tim,

    Well, I shame for myselft but I couldn't anything in the release notes.
Can you be more specific. I was able to enable the regular (default) cgi
capability, but I would like to define additional directories. I'm new to
tomcat configuration.

    The CGI-HOWTO for tomcat indeed talks about the web.xml file and I have
edited it accordingly. I didn't understand how can this be done for
additional directories.

Thanks in advance for your help.

Yochy Toledano



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to