<DIV> Hi ,</DIV>
<DIV>I have came across a problem in using the proxy under Windows. I use tomcat 5.5, and the cofiguration of cgi in web.xml is like this:</DIV>
<DIV><servlet><BR> <servlet-name>cgi</servlet-name><BR> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class><BR> <init-param><BR> <param-name>debug</param-name><BR> <param-value>0</param-value><BR> </init-param><BR> <init-param><BR> <param-name>executable</param-name><BR> <param-value>C:\Python25\python.exe</param-value><BR> </init-param><BR> <init-param><BR> <param-name>cgiPathPrefix</param-name><BR> <param-value>WEB-INF/cgi-bin</param-value><BR> </init-param><BR> <load-on-startup>5</load-on-startup><BR></servlet></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><servlet-mapping><BR> <servlet-name>cgi</servlet-name><BR> <url-pattern>/cgi-bin/*</url-pattern></DIV>
<DIV></servlet-mapping><BR>I and I put the proxy.cgi file under the WEB-INF/cgi-bin/ directory and changed the beginning to be: #!C:\Python25\python -u. And I can get the result of another test.cgi(under the same directory as the proxy.cgi) in the broswer. But when I acess the proxy.cgi using browser,I get a "HTTP 500" error. The difference of the test.cgi and proxy.cgi is that the proxy.cgi use method of the lib. And how can I cofigure to get the Tomacat know the where the lib of python is? By the way, I can run the proxy cgi using the cosole command getting the correct result(at firt I got error,but after I commented two lines, I geot it run).</DIV>
<DIV> </DIV>
<DIV> </DIV>