Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are a few issues with your configuration:</p> <ol> <li>Apache and try to listen on the same port 8081, this is not possible</li> <li>You ProxyPass is not the best, it will create some small issues. These issues are: <ol> <li>Unable to to create projects names with a slash in it like: main/sub</li> <li>When reviewing files the check mark will not appear next to the file to show it as reviewed, again this is related to the forward slash not being properly processed</li> </ol></li> <li>It is most common to use a subfolder and not the root, I guess that works better with the reverse proxy</li> </ol> <p>This is my recommended configuration for you:</p> <pre><code> &lt;VirtualHost *:80&gt; ServerName localhost ProxyRequests Off ProxyVia Off ProxyPreserveHost On &lt;Proxy *&gt; Order deny,allow Allow from all &lt;/Proxy&gt; &lt;Location "/"&gt; AuthType Basic AuthName "Gerrit Code Review" AuthBasicProvider file AuthUserFile /usr/local/apache/passwd/passwords Require valid-user &lt;/Location&gt; AllowEncodedSlashes On ProxyPass /r http://localhost:8081/r nocanon &lt;/VirtualHost&gt; </code></pre> <p>Ofcourse don't forget to amend the gerrit.config, the canonicalWebUrl is what you type in the address bar, not what apache uses to find gerrit.</p> <pre><code>[gerrit] basePath = git canonicalWebUrl = http://localhost:8082/r </code></pre> <p>To prevent the apache default page from showing add a index.php in your root folder that will redirect your browser to the sub path:</p> <pre><code>&lt;?php header('Location: http://localhost:8082/r/'); ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload