title: How to configure the Plug.Static without Phoenix
body: <p>I am trying to figure out how to configure Plug.Static <strong>without</strong> any other framework (Phoenix, Sugar, etc); just Cowboy, Plug and Elixir. I just don't know how to put things together in the Router.</p>
  
  <pre><code>  plug :match
    plug Plug.Static, at: "/pub", from: :cerber
    plug :dispatch
  
    get "/" do
      Logger.info "GET /"
      send_resp(conn, 200, "Hello world\n")
    end
  </code></pre>
  
  <ol>
  <li>Is the declaration of <code>Plug.Static</code> at the right place ? Shouldn't it be after <code>plug :dispatch</code> ?</li>
  <li>Do I need to define an additional route</li>
  <li>With this declaration:
  
  <ol>
  <li>what is the URL to reach, say <code>index.html</code>?</li>
  <li>where on the file system <code>index.html</code> should be located</li>
  </ol></li>
  </ol>
  
  <p>I'm just lost.</p>