blob: a05e1ea90edecbc53868beffa45e7f3b19f5a1e9 [file] [log] [blame]
<title>Configuration Error - Gerrit Code Review</title>
.check_msg {
background: orange;
padding: 20px;
width: 25em;
.apache_config {
font-size: small;
border: 1px dotted black;
width: 40em;
margin-left: 5em;
padding: 1em;
.apache_auth {
background: lightgrey;
#loginHeader {
font-weight: bold;
background: lightgrey;
padding-left: 5px;
padding-right: 5px;
<h1>Configuration Error</h1>
<div class='check_msg'>
<b>Check the HTTP server's authentication settings.</b>
The HTTP server did not provide the username in the
<span id='loginHeader'>HEADER</span> header when it
forwarded the request to Gerrit Code Review.
If the HTTP server is Apache HTTPd, check the proxy
configuration includes an authorization directive with
the proper location, ensuring it ends with '/':
<pre class='apache_config'>
&lt;VirtualHost <span class='ServerName'></span><span class='ServerPort'>:80</span>&gt;
ServerName <span class='ServerName'></span>
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
&lt;Proxy *&gt;
Order deny,allow
Allow from all
<div class='apache_auth'> &lt;Location <span class='ContextPath'>/r</span>/login/&gt;
AuthType Basic
AuthName "Gerrit Code Review"
Require valid-user
AllowEncodedSlashes On
ProxyPass <span class='ContextPath'>/r</span>/ http://...<span class='ContextPath'>/r</span>/ nodecode