users@glassfish.java.net

Re: Debugging CGI script

From: <forums_at_java.net>
Date: Sat, 6 Aug 2011 01:55:16 -0500 (CDT)

 Yes of course! Here it is.

<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <servlet>
<servlet-name>cgi</servlet-name>
<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
<init-param> <param-name>debug</param-name> <param-value>10</param-value>
</init-param> <init-param> <param-name>executable</param-name>
<param-value>c:\python27\python.exe</param-value> </init-param> <init-param>
<param-name>parameterEncoding</param-name>
<param-value>System.getProperty("file.encoding","UTF-8")</param-value>
</init-param> <init-param> <param-name>cgiPathPrefix</param-name>
<param-value>WEB-INF/cgi</param-value> </init-param>
<load-on-startup>5</load-on-startup> </servlet> <servlet-mapping>
<servlet-name>cgi</servlet-name> <url-pattern>/cgi-bin/*</url-pattern>
</servlet-mapping> <session-config> <session-timeout> 30 </session-timeout>
</session-config> <welcome-file-list>
<welcome-file>/cgi-bin/hgweb.cgi</welcome-file> </welcome-file-list>
<security-constraint> <display-name>Mercurial</display-name>
<web-resource-collection> <web-resource-name>Mercurial</web-resource-name>
<description/> <url-pattern>/cgi-bin/hgweb.cgi</url-pattern>
<http-method>GET</http-method> <http-method>POST</http-method>
<http-method>HEAD</http-method> <http-method>PUT</http-method>
<http-method>OPTIONS</http-method> <http-method>TRACE</http-method>
<http-method>DELETE</http-method> </web-resource-collection>
<auth-constraint> <description/> <role-name>mercurial</role-name>
</auth-constraint> </security-constraint> <security-role> <description>Role
for accessing hgweb.cgi</description> <role-name>mercurial</role-name>
</security-role> </web-app>
 


--
[Message sent by forum member 'kha-ruslan']
View Post: http://forums.java.net/node/829927