SquaresDB: Apparently I can check peer name
[sysconfig/apache2.git] / conf-available / gitweb.conf
index 8055f9d8de7fcbecba17642793da038ac2589068..cb914bcffd02b78049e047e0c4e836ff2be0f481 100644 (file)
@@ -1,6 +1,19 @@
-Alias /gitweb /usr/share/gitweb
+<IfModule mod_alias.c>
+  <IfModule mod_mime.c>
+    <IfModule mod_cgi.c>
+      Define ENABLE_GITWEB
+    </IfModule>
+    <IfModule mod_cgid.c>
+      Define ENABLE_GITWEB
+    </IfModule>
+  </IfModule>
+</IfModule>
 
-<Directory /usr/share/gitweb>
-  Options FollowSymLinks ExecCGI
-  AddHandler cgi-script .cgi
-</Directory>
+<IfDefine ENABLE_GITWEB>
+  Alias /gitweb /usr/share/gitweb
+
+  <Directory /usr/share/gitweb>
+    Options +FollowSymLinks +ExecCGI
+    AddHandler cgi-script .cgi
+  </Directory>
+</IfDefine>