Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6071 dpurdie 1
#
2
#	Web server configuration for LXR root directory
3
#	From thr LXR Installation with restrictions to prevent all 
4
#	users from accessing LXR
5
#
6
#	$Id: htaccess-generic,v 1.9 2014/03/10 16:40:27 ajlittoz Exp $
7
#
8
#	Content of this file is independent of the location of
9
#	the LXR root directory.
10
#	Need for user-customization should be very limited.
11
#	Eventually, access to LXR root directory can be relaxed.
12
#	Default is very restrictive.
13
#
14
# Cannot grant Apache 2.2/2.4 implicit compatibility because Require
15
# directive syntax and semantics changed between releases.
16
# When updating 2.2 -> 2.4, uncomment 2.4 specific lines
17
 
18
 
19
# Enable CGI script execution and use of symlinks
20
Options ExecCGI FollowSymlinks
21
 
22
		# up to Apache 2.2
23
#	Order deny,allow
24
		# from Apache 2.4
25
#	No directive needed
26
 
27
 
28
# =================================================
29
#
30
# -----------    Access restrictions    -----------
31
#
32
 
33
# Do not allow to list directories content
34
# NOTE: remove - sign when debugging LXR installation so that you
35
#		can see what's really in the directories.
36
Options -Indexes
37
 
38
# Forbid direct access to any file in LXR root and its subdirectories
39
<FilesMatch ".">
40
		# up to Apache 2.2
41
#	Deny from all
42
		# from Apache 2.4
43
	Require all denied
44
</FilesMatch>
45
 
46
# But allow access to style sheets
47
<FilesMatch "\.css$">
48
		# up to Apache 2.2
49
#	Allow from all
50
		# from Apache 2.4
51
	Require all granted
52
</FilesMatch>
53
# and graphic files (for icons)
54
<FilesMatch "\.(bmp|gif|icon?|jpe?g|png|svg|tiff?)$">
55
		# up to Apache 2.2
56
#	Allow from all
57
		# from Apache 2.4
58
	Require all granted
59
</FilesMatch>
60
# VIX - Allow access to test file so that Release Manager Web Server
61
#       can probe for LXR access
62
<Files "source.test">
63
	Require all granted
64
</Files>
65
 
66
# =================================================
67
#
68
# ----------- LXR scripts configuration -----------
69
#
70
#
71
<Files ~ (search|source|ident|diff|showconfig)$>
72
		# up to Apache 2.2
73
#	Allow from all
74
		# from Apache 2.4
75
	#Require all granted
76
	# VIX - Limit access to Domain Users eho are also members of the
77
	#       svn.perdev group
78
	#
79
	#	Access granted to everybody
80
        <RequireAll>
81
                AuthLDAPBindDN "CN=ldap.buildsystem,DC=vix,DC=local"
82
                AuthLDAPBindPassword VixPass.2016
83
                AuthLDAPURL ldap://10.0.0.10:389/DC=vix,DC=local?sAMAccountName?sub?(objectClass=*)
84
 
85
                AuthType Basic
86
                AuthName "VIX Realm"
87
                AuthBasicProvider ldap
88
 
89
                AuthLDAPGroupAttributeIsDN on
90
                AuthLDAPGroupAttribute member
91
                require ldap-group CN=svn.perdev,OU=Groups,DC=vix,DC=local
92
        </RequireAll>
93
	 # End VIX insert
94
 
95
	# *** mod_perl use ***
96
	<IfModule mod_perl.c>
97
		SetHandler perl-script
98
 
99
		# Configuration parameters changed between mod_perl versions:
100
		<IfDefine MODPERL2>
101
			PerlOptions +ParseHeaders
102
		# Apache can dispatch execution according to 2 modes.
103
		# mod_perl initialization differs slightly:
104
			<IfModule prefork.c>
105
				PerlHandler ModPerl::RegistryPrefork
106
			</IfModule>
107
			<IfModule worker.c>
108
				PerlHandler ModPerl::Registry
109
			</IfModule>
110
		</IfDefine>
111
 
112
		<IfDefine !MODPERL2>
113
			PerlSendHeader On
114
			PerlHandler Apache::Registry
115
		</IfDefine>
116
 
117
	</IfModule>
118
 
119
	# *** CGI use ***
120
	<IfModule !mod_perl.c>
121
		SetHandler cgi-script
122
	</IfModule>
123
 
124
</Files>
125