title: Private Ruby Gem Server with Authentication
body: <p>I want to install a private Ruby gem server with some authentication. I want to be able to host in-house gems using a public Ubuntu server.</p>
  <p>I read about <a href="http://docs.rubygems.org/read/chapter/18" rel="noreferrer">http://docs.rubygems.org/read/chapter/18</a>. But there is no authentication with that one - as I can see.</p>
  <p>Then I read about <a href="https://github.com/cwninja/geminabox" rel="noreferrer">https://github.com/cwninja/geminabox</a>. But when I use the basic authentication (they have in their Wiki), it complaints about fetching the sources from my server.</p>
  <p>So. How can I make a private Ruby gem server with authentication? Is that just impossible?</p>
  <p>Thanks.</p>
  <p>Edit:</p>
  <p>Geminabox problem. I try to &quot;bundle&quot; to install new gems... but it gives me this error:</p>
  <blockquote>
  <p>AGs-MacBook-Pro:super_app AG$ bundle</p>
  <p>Fetching source index for http:// rubygems.org/</p>
  <p>Fetching source index for http:// localhost:9292/</p>
  <p>Could not reach rubygems repository http:// rubygems.org/, http:// localhost:9292/</p>
  <p>Could not find aglipsum-0.0.1 in any of the sources</p>
  </blockquote>
  <p>And &quot;aglipsum&quot; is my custom gem. However when I do not have basic authentication on, it works.</p>