]> git.pld-linux.org Git - packages/cgit.git/blob - cgit-apache.conf
- up to 0.10.2
[packages/cgit.git] / cgit-apache.conf
1 <Directory /usr/share/cgit>
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/cgit.cgi address
15 ScriptAlias /cgi-bin/cgit.cgi /usr/lib/cgi-bin/cgit.cgi
16 Alias /cgit/ /usr/share/cgit/
17 <Location /cgi-bin/cgit.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
29 # Version 2: cgit as a handler to whole vhost:
30 #<VirtualHost *:80>
31 #       ServerName cgit
32 #
33 #       Alias /cgit/ /usr/share/cgit/
34 #       DocumentRoot /usr/lib/cgi-bin/cgit.cgi
35 #       <Location />
36 #               Options ExecCGI
37 #               # Apache 2.x
38 #               <IfModule !mod_authz_core.c>
39 #                       Order allow,deny
40 #                       Allow from all
41 #               </IfModule>
42 #               # Apache 2.4
43 #               <IfModule mod_authz_core.c>
44 #                       Require all granted
45 #               </IfModule>
46 #       </Location>
47 #</VirtualHost>
This page took 0.037924 seconds and 3 git commands to generate.