]> git.pld-linux.org Git - packages/git-core.git/blob - git-core-gitweb-httpd.conf
apache multiversion config
[packages/git-core.git] / git-core-gitweb-httpd.conf
1 <Directory /usr/share/gitweb>
2         AllowOverride None
3         # Apache 2.x
4         <IfModule !mod_authz_core.c>
5                 Order allow,deny
6                 Allow from all
7         </IfModule>
8         # Apache 2.4
9         <IfModule mod_authz_core.c>
10                 Require all granted
11         </IfModule>
12 </Directory>
13
14 # Version 1 (default): under /cgi-bin/gitweb.cgi address
15 Alias /cgi-bin/static/ /usr/share/gitweb/static/
16 ScriptAlias /cgi-bin/gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
17 <Location /cgi-bin/gitweb.cgi>
18         # Apache 2.x
19         <IfModule !mod_authz_core.c>
20                 Order allow,deny
21                 Allow from all
22         </IfModule>
23         # Apache 2.4
24         <IfModule mod_authz_core.c>
25                 Require all granted
26         </IfModule>
27 </Location>
28 SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
29
30 #
31 # Version 2: gitweb as a handler to whole vhost:
32 #<VirtualHost *:80>
33 #       ServerName gitweb
34 #
35 #       Alias /static /usr/share/gitweb/static
36 #       DocumentRoot /usr/lib/cgi-bin
37 #       AddHandler cgi-script .cgi
38 #       DirectoryIndex gitweb.cgi
39 #       <Location />
40 #               Options ExecCGI
41 #               # Apache 2.x
42 #               <IfModule !mod_authz_core.c>
43 #                       Order allow,deny
44 #                       Allow from all
45 #               </IfModule>
46 #               # Apache 2.4
47 #               <IfModule mod_authz_core.c>
48 #                       Require all granted
49 #               </IfModule>
50 #       </Location>
51 #       SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
52 #</VirtualHost>
This page took 0.05719 seconds and 4 git commands to generate.