You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yochi Toledano <yo...@liraz-x.co.il> on 2003/11/24 06:33:34 UTC
ScriptAlias equivalent in tomcat
Hi,
I'm running tomcat version 4.X on HPUX system as a standalone server. I have read the CGI howto for tomcat and I have enabled CGI capability on the server.
My question is - How can I define additional directory that contains CGI scripts other than the default one that comes with the configuration.
On apache I would say something like:
ScriptAlias cgi-bin/myscripts /usr/local/myscript to link /usr/local/myscript to the cgi-bin/myscripts directive. How can this be done under tomcat?
Thanks in advance.
Yochy Toledano
Re: ScriptAlias equivalent in tomcat
Posted by Tim Funk <fu...@joedog.org>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: ScriptAlias equivalent in tomcat
Posted by Yochi Toledano <yo...@liraz-x.co.il>.
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
----- Original Message -----
From: "Tim Funk" <fu...@joedog.org>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, November 24, 2003 1:51 PM
Subject: Re: ScriptAlias equivalent in tomcat
> See the release notes. Its described there.
>
> (Hint: edit $CATALINA_HOME/web.xml)
>
> -Tim
>
> Yochi Toledano wrote:
>
> > Hi,
> >
> > I'm running tomcat version 4.X on HPUX system as a standalone
server. I have read the CGI howto for tomcat and I have enabled CGI
capability on the server.
> >
> > My question is - How can I define additional directory that contains
CGI scripts other than the default one that comes with the configuration.
> >
> > On apache I would say something like:
> >
> > ScriptAlias cgi-bin/myscripts /usr/local/myscript to link
/usr/local/myscript to the cgi-bin/myscripts directive. How can this be done
under tomcat?
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: ScriptAlias equivalent in tomcat
Posted by Tim Funk <fu...@joedog.org>.
See the release notes. Its described there.
(Hint: edit $CATALINA_HOME/web.xml)
-Tim
Yochi Toledano wrote:
> Hi,
>
> I'm running tomcat version 4.X on HPUX system as a standalone server. I have read the CGI howto for tomcat and I have enabled CGI capability on the server.
>
> My question is - How can I define additional directory that contains CGI scripts other than the default one that comes with the configuration.
>
> On apache I would say something like:
>
> ScriptAlias cgi-bin/myscripts /usr/local/myscript to link /usr/local/myscript to the cgi-bin/myscripts directive. How can this be done under tomcat?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org