summaryrefslogtreecommitdiff
path: root/mercurial-hgweb-httpd.config
blob: 0c34ee21cad033ff6a8d1f974fc4be12cc941260 (plain)
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
WSGIScriptAlias / /usr/lib64/mercurial/hgwebdir.cgi

<Directory /usr/lib64/mercurial>
	AllowOverride All
	Options ExecCGI
	SetHandler cgi-script
	# Apache 2.x
	<IfModule !mod_authz_core.c>
#		Deny from All
		Allow from 192.168.*
		Allow from All
	</IfModule>
	# Apache 2.4
	<IfModule mod_authz_core.c>
#		Require all denied
#		Require ip 192.168.0.0/16
		Require all granted
	</IfModule>
</Directory>

DocumentRoot /home/services/hg

<Directory /home/services/hg>
	Options FollowSymlinks Indexes
	DirectoryIndex index.html

	AllowOverride All
	# 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>