title: Jetty ProxyServlet with SSL support
body: <p>I am using Jetty's ProxyServlet as a HTTP proxy.</p>
  
  <p>After I start the server and add the socks proxy in firefox I can access websites through the proxy without any problems.</p>
  
  <p>The problem is that when I try to access a HTTPs website through the proxy. Firefox displays a "Server not found" error and during debugging I don't see anything happening in my Java code.</p>
  
  <p>Am I missing something here to add SSL support to Jetty?</p>
  
  <p>Here's part of the code:</p>
  
  <pre><code>    Server httpProxy = new Server(8087);
  
      ServletHandler servletHandler = new ServletHandler();
      servletHandler.addServletWithMapping(new ServletHolder(new TunnelProxyServlet()), "/*");
  
      httpProxy.setHandler(servletHandler);
      try {
          httpProxy.start();
      } catch (Exception ex) {
          Logger.getLogger(HttpProxy.class.getName()).log(Level.SEVERE, null, ex);
      }
  
      public class TunnelProxyServlet extends ProxyServlet {
        @Override
        public void init(ServletConfig config) throws ServletException {
          super.init(config);
          System.out.println("init done !");
        }
  
        @Override
        public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
          System.out.println("got a request !");
          super.service(req, res);
        } 
     }
  </code></pre>