Re: ScriptAlias equivalent in tomcat

2003-11-24 Thread Tim Funk
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ScriptAlias equivalent in tomcat

2003-11-24 Thread Yochi Toledano
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 [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: ScriptAlias equivalent in tomcat

2003-11-24 Thread Tim Funk
To map an entire directory, uncomment in $CATALINA_HOME/conf:
servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cgi-bin/*/url-pattern
/servlet-mapping
To map another directory called cowbell:
servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cowbell/*/url-pattern
/servlet-mapping
To map *.cgi, add this instead:
servlet-mapping
servlet-namecgi/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]


ScriptAlias equivalent in tomcat

2003-11-23 Thread Yochi Toledano
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