<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app 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_5.xsd"
         version="2.5">
     
     
    <!-- Using jetty-9.0.7.v20131107 -->
  
  
  <servlet>
    <servlet-name>HttpProxy2</servlet-name>
    <servlet-class>org.eclipse.jetty.proxy.ProxyServlet$Transparent</servlet-class>

    <async-supported>true</async-supported>
    
    
    <init-param>
      <param-name>proxyTo</param-name>
      
      <!-- 
           <param-value>http://localhost:8081/geoserver/</param-value>              WORKS
           test URL :  (site) /proxy/wms?request=GetCapabilities&service=wms        
           
           <param-value>http://geodata.nationaalgeoregister.nl/ahn1/</param-value>  
           test URL :  (site) /proxy/mapserv?request=GetCapabilities&service=wms    FAILS 502
           
           <param-value>http://www.gebco.net/data_and_products/gebco_web_services/web_map_service/</param-value> 
           test URL :  (site) /proxy/mapserv?request=GetCapabilities&service=wms    FAILS 502
           
      -->
      
      <param-value>http://www.gebco.net/data_and_products/gebco_web_services/web_map_service/</param-value>
      <!-- test URL :  (site) /proxy/mapserv?request=GetCapabilities&service=wms

            When i had this web.xml in  /PRXY/WEB-INF/web.xml   inside AutoDeployment folder:
            test URL : http://localhost:8080/PRXY/proxy/mapserv?request=GetCapabilities&service=wms
      -->
      
    </init-param>

    <init-param>
      <param-name>prefix</param-name>
      <param-value>/proxy/</param-value>
    </init-param>

  </servlet>   
  
  <servlet-mapping>
    <servlet-name>HttpProxy2</servlet-name>
    <url-pattern>/proxy/*</url-pattern>
  </servlet-mapping> 

  
  
</web-app>

