wire up transparent access for both xref and apidocs

This commit is contained in:
Jesse McConnell 2012-12-26 15:01:41 -03:00
parent 5f16dd756f
commit 2bc4cdcd01
2 changed files with 23 additions and 5 deletions

View File

@ -2,5 +2,5 @@
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/xref</Set>
<Set name="contextPath">/tproxy</Set>
</Configure>

View File

@ -9,10 +9,10 @@
<display-name>Transparent Proxy WebApp</display-name>
<servlet>
<servlet-name>TransparentProxy</servlet-name>
<servlet-name>XrefTransparentProxy</servlet-name>
<servlet-class>org.eclipse.jetty.proxy.ProxyServlet$Transparent</servlet-class>
<init-param>
<param-name>proxyTo</param-name><param-value>http://download.eclipse.org/jetty/stable-9/xref</param-value>
<param-name>proxyTo</param-name><param-value>http://download.eclipse.org/jetty/stable-9</param-value>
</init-param>
<init-param>
<param-name>hostHeader</param-name><param-value>download.eclipse.org</param-value>
@ -22,10 +22,28 @@
</servlet>
<servlet-mapping>
<servlet-name>TransparentProxy</servlet-name>
<url-pattern>/</url-pattern>
<servlet-name>XrefTransparentProxy</servlet-name>
<url-pattern>/xref/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>JavadocTransparentProxy</servlet-name>
<servlet-class>org.eclipse.jetty.proxy.ProxyServlet$Transparent</servlet-class>
<init-param>
<param-name>proxyTo</param-name><param-value>http://download.eclipse.org/jetty/stable-9</param-value>
</init-param>
<init-param>
<param-name>hostHeader</param-name><param-value>download.eclipse.org</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>JavadocTransparentProxy</servlet-name>
<url-pattern>/apidocs/*</url-pattern>
</servlet-mapping>
</web-app>