-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgit-core-gitweb-httpd.conf
More file actions
54 lines (52 loc) · 1.21 KB
/
git-core-gitweb-httpd.conf
File metadata and controls
54 lines (52 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<Directory /usr/share/gitweb>
AllowOverride None
# Apache 2.x
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</Directory>
# Version 1 (default): under /cgi-bin/gitweb.cgi address
Alias /cgi-bin/static/ /usr/share/gitweb/static/
ScriptAlias /cgi-bin/gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
<Location /cgi-bin/gitweb.cgi>
# Apache 2.x
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</Location>
<IfModule mod_env.c>
SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
</IfModule>
#
# Version 2: gitweb as a handler to whole vhost:
#<VirtualHost *:80>
# ServerName gitweb
#
# Alias /static /usr/share/gitweb/static
# DocumentRoot /usr/lib/cgi-bin
# AddHandler cgi-script .cgi
# DirectoryIndex gitweb.cgi
# <Location />
# Options ExecCGI
# # Apache 2.x
# <IfModule !mod_authz_core.c>
# Order allow,deny
# Allow from all
# </IfModule>
# # Apache 2.4
# <IfModule mod_authz_core.c>
# Require all granted
# </IfModule>
# </Location>
# SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
#</VirtualHost>