]> git.pld-linux.org Git - packages/git-core.git/blame - git-core-gitweb-httpd.conf
gitweb package Requires: webserver(access)
[packages/git-core.git] / git-core-gitweb-httpd.conf
CommitLineData
e11e20ca
AG
1<Directory /usr/share/gitweb>
2 AllowOverride None
95c90ddf
ER
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>
e11e20ca
AG
12</Directory>
13
14# Version 1 (default): under /cgi-bin/gitweb.cgi address
614295b2 15Alias /cgi-bin/static/ /usr/share/gitweb/static/
e11e20ca 16ScriptAlias /cgi-bin/gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
e11e20ca 17<Location /cgi-bin/gitweb.cgi>
95c90ddf
ER
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>
e11e20ca 27</Location>
614295b2 28SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
e11e20ca 29
614295b2 30#
e11e20ca
AG
31# Version 2: gitweb as a handler to whole vhost:
32#<VirtualHost *:80>
33# ServerName gitweb
34#
614295b2
KK
35# Alias /static /usr/share/gitweb/static
36# DocumentRoot /usr/lib/cgi-bin
37# AddHandler cgi-script .cgi
38# DirectoryIndex gitweb.cgi
e11e20ca
AG
39# <Location />
40# Options ExecCGI
95c90ddf
ER
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>
e11e20ca 50# </Location>
614295b2 51# SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
e11e20ca 52#</VirtualHost>
This page took 0.082128 seconds and 4 git commands to generate.