title: Sentry + Raven, HTTP Error 401: UNAUTHORIZED
body: <p>I have a <a href="http://sentry.readthedocs.org/en/latest/index.html">Sentry</a> application, running correctly on the url: mydomain.com:11011.</p>
  
  <p>I have a project created with the CDN: <a href="http://XXX:YYY@mydomain.com:11011/2">http://XXX:YYY@mydomain.com:11011/2</a></p>
  
  <p>This url is served with HAProxy with this configuration:</p>
  
  <pre><code>listen sentry *:11011
      mode tcp
      server app1 localhost:9005 maxconn 32
  </code></pre>
  
  <p>The configuration of sentry:</p>
  
  <pre><code>SENTRY_KEY = 'foo'
  SENTRY_PUBLIC = True
  SENTRY_URL_PREFIX = 'http://mydomain.com:11011'  # No trailing slash!
  SENTRY_WEB_HOST = 'localhost'
  SENTRY_WEB_PORT = 9005
  SENTRY_WEB_OPTIONS = {
      'workers': 1, # the number of gunicorn workers
      'worker_class': 'gevent',
  }
  </code></pre>
  
  <p>But I have a problem with authentication when I try Raven test, from the same server:</p>
  
  <pre><code>$ raven test http://XXX:YYY@mydomain.com:11011/2
  HTTPError: HTTP Error 401: UNAUTHORIZED
  </code></pre>
  
  <p>Also fails:</p>
  
  <pre><code>$ raven test http://XXX:YYY@localhost:9005/2
  HTTPError: HTTP Error 401: UNAUTHORIZED
  </code></pre>
  
  <p>What could be the problem? Thanks.</p>