On 19/01/2016 14:32, Luciano Martin Galletti wrote:
> I’m tryng to use a proxy.cgi for my app developed in openlayer.
> 
> 
> But when i try to use the url of the cgi i can read the test of the file 
> proxy.cgi and it’s not executed.
> 
> 
> I’ve modified the server.xml adding:

That should be web.xml for your application.

> 
> 
>     <servlet>
>         <servlet-name>cgi</servlet-name>
>         <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
>         <init-param>
>           <param-name>debug</param-name>
>           <param-value>0</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>
> 
> 
> 
> and:
> 
> 
>     <servlet-mapping>
>         <servlet-name>cgi</servlet-name>
>         <url-pattern>/cgi-bin/*</url-pattern>
>     </servlet-mapping>
> 
> 
> 
> and i put the proxy.cgi in the folder WEB-INF/cgi of my app! while server.xml 
> and context.xml in the folder of my application on server.

You should leave server.xml where Tomcat installs it.

Application specific context.xml files should be under META-INF

> in context.xml i’ve added:
> 
>   <Context antiResourceLocking="false" privileged="true" useHttpOnly="true" 
> /> 

Which context.xml file?

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to