Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm searching for a suitable solution of my problem since a couple of hours.

I installed Gerrit and tried to set my auth type to HTTP. Thus, I had to adjust a http conf file similar to this:

<VirtualHost *:8080>
 ServerAdmin felix@localhost
 ServerName www.gerrit.test

   ProxyRequests Off
   ProxyVia Off
   ProxyPreserveHost On

  ErrorLog /var/log/gerrit.log
  CustomLog /var/log/gerrit.log combined

  <location /login/>
     AuthType Basic
     AuthName "Gerrit Code Review"
     Require valid-user
     AuthUserFile  /etc/httpd/passwd/gerritpass

  ProxyPass /
  ProxyPassReverse /

  RewriteEngine on
  RewriteRule .* - [E=SM_USER:%{LA-U:REMOTE_USER}]

But I really don't know in what way my this Server is started, since there isn't any new configuration file in my /etc/apache2/conf.d folder.

Do you now where to find a set of clear instructions how to make this type of authentication possible?

Thank a lot!

share|improve this question
the virtual host configuration sections go to a separate so-called "site" files, located in /etc/apache2/sites-available. They are being enabled using a2ensite command, which actually creates a symlink to /etc/apache2/sites-enabled. Place this configuration there. Anyway use the correct port number (:80) for the virt host: here you are setting <VirtualHost *:8080> which collides with your reverse proxy settings. – SkyRaT Jan 15 '13 at 9:15
Thanks a lot! :) – John Rumpel Feb 22 '13 at 13:19

You must log in to answer this question.

Browse other questions tagged .