Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Https proxy

you'll need to add ConnectHandler to support https-tunelling

hth



On Sat, Dec 22, 2012 at 6:09 PM, Marco Altieri <marco.altieri@xxxxxxxxx> wrote:
Hi,

I'm trying to use jetty as a proxy server.
I have installed the package "jetty-distribution-8.1.8.v20121106" and I have added the root application:
webapps/ROOT
webapps/ROOT/WEB-INF/
webapps/ROOT/WEB-INF/web.xml

The content of the web.xml is the following:


<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app
       xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
       version="3.0">
      <display-name>Proxy</display-name>
    <servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>org.eclipse.jetty.servlets.ProxyServlet</servlet-class>
    </servlet>   
    <servlet-mapping>
        <servlet-name>default</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>   
  <session-config>
    <session-timeout>0</session-timeout>
  </session-config>
</web-app>

The start.ini contains the following snippet:

#===========================================================
# Start classpath OPTIONS.
# These control what classes are on the classpath
# for a full listing do
#   java -jar start.jar --list-options
#-----------------------------------------------------------
#OPTIONS=Server,jsp,jmx,resources,websocket,ext,plus,annotations,client
OPTIONS=All
#-----------------------------------------------------------
#===========================================================
# Configuration files.
# For a full list of available configuration files do
#   java -jar start.jar --help
#-----------------------------------------------------------
#etc/jetty-jmx.xml
etc/jetty.xml
etc/jetty-annotations.xml
etc/jetty-ssl.xml
# etc/jetty-requestlog.xml
etc/jetty-deploy.xml
#etc/jetty-overlay.xml
etc/jetty-webapps.xml
etc/jetty-contexts.xml
etc/jetty-testrealm.xml
#===========================================================
 
The proxy works with http request but not with https.

Am I supposed to to something else to configure a proxy for https?

Thank you,
Marco

_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev



Back to the top