]>
Commit | Line | Data |
---|---|---|
6e601396 JR |
1 | <Directory /usr/share/cgit> |
2 | AllowOverride None | |
08d38ec4 ŁK |
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> | |
6e601396 JR |
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> | |
08d38ec4 ŁK |
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> | |
6e601396 JR |
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 | |
08d38ec4 ŁK |
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> | |
6e601396 JR |
46 | # </Location> |
47 | #</VirtualHost> |