title: How to serve static content and resource at same base url with Grizzly
body: <p>I am using Grizzly to serve my REST service which can have multiple "modules".  I'd like to be able to use the same base URL for the service and for static content so I can access all these urls:</p>
  
  <ul>
  <li><a href="http://host:port/index.html" rel="nofollow">http://host:port/index.html</a></li>
  <li><a href="http://host:port/module1/index.html" rel="nofollow">http://host:port/module1/index.html</a></li>
  <li><a href="http://host:port/module1/resource" rel="nofollow">http://host:port/module1/resource</a></li>
  <li><a href="http://host:port/module2/index.html" rel="nofollow">http://host:port/module2/index.html</a></li>
  <li><a href="http://host:port/module2/resource" rel="nofollow">http://host:port/module2/resource</a></li>
  </ul>
  
  <p>The code I'm trying to set this up with looks like this:</p>
  
  <pre><code>private HttpServer createServer(String host, int port, ResourceConfig config)
  {               
      HttpServer server = GrizzlyHttpServerFactory.createHttpServer(URI.create("http://" + host + ":" + port + "/"), config, false);
  
      HttpHandler httpHandler = new CLStaticHttpHandler(HttpServer.class.getClassLoader(), "docs/");
      server.getServerConfiguration().addHttpHandler(httpHandler, "/");
  
      return server;
  }
  </code></pre>
  
  <p>With this code, I am only able to see the html pages and I get a "Resource identified by path does not exist" response when I try to get my resources.
  When I comment out the code to add the HttpHandler, then I am able to access my resources (but don't have the docs of course).
  What do I need to do to access both my resources and my static content?</p>