1 # http.conf used for testing auth-test
8 # The tests shut down apache with "graceful-stop", because that makes
9 # it close its listening socket right away. But it seems to sometimes
10 # result in apache never fully exiting. This fixes that.
11 GracefulShutdownTimeout 1
13 # Change this to "./error.log" if it's failing and you don't know why
16 LoadModule alias_module @APACHE_MODULE_DIR@/mod_alias.so
17 LoadModule auth_basic_module @APACHE_MODULE_DIR@/mod_auth_basic.so
18 LoadModule auth_digest_module @APACHE_MODULE_DIR@/mod_auth_digest.so
19 LoadModule authn_file_module @APACHE_MODULE_DIR@/mod_authn_file.so
20 LoadModule authz_host_module @APACHE_MODULE_DIR@/mod_authz_host.so
21 LoadModule authz_user_module @APACHE_MODULE_DIR@/mod_authz_user.so
22 LoadModule dir_module @APACHE_MODULE_DIR@/mod_dir.so
23 LoadModule mime_module @APACHE_MODULE_DIR@/mod_mime.so
24 @IF_HAVE_PHP@LoadModule php5_module @APACHE_PHP_MODULE_DIR@/@APACHE_PHP_MODULE@
25 LoadModule proxy_module @APACHE_MODULE_DIR@/mod_proxy.so
26 LoadModule proxy_http_module @APACHE_MODULE_DIR@/mod_proxy_http.so
27 LoadModule proxy_connect_module @APACHE_MODULE_DIR@/mod_proxy_connect.so
28 LoadModule ssl_module @APACHE_SSL_MODULE_DIR@/mod_ssl.so
30 DirectoryIndex index.txt
32 AddType application/x-httpd-php .php
33 Redirect permanent /redirected /index.txt
35 # Proxy #1: unauthenticated
36 Listen 127.0.0.1:47526
37 <VirtualHost 127.0.0.1:47526>
41 # Deny proxying by default
47 # Allow local http connections
48 <Proxy http://127.0.0.1*>
53 # Allow CONNECT to local https port
54 <Proxy 127.0.0.1:47525>
59 # Deny non-proxy requests
66 # Proxy #2: authenticated
67 Listen 127.0.0.1:47527
68 <VirtualHost 127.0.0.1:47527>
72 # Deny proxying by default
78 # Allow local http connections with authentication
79 <Proxy http://127.0.0.1:47524*>
85 AuthUserFile ./htpasswd
89 # Allow CONNECT to local https port with authentication
90 <Proxy 127.0.0.1:47525>
96 AuthUserFile ./htpasswd
100 # Fail non-proxy requests
107 # Proxy #3: unauthenticatable-to
108 Listen 127.0.0.1:47528
109 <VirtualHost 127.0.0.1:47528>
113 # Deny proxying by default
119 # Allow local http connections with authentication
120 <Proxy http://127.0.0.1:47524*>
126 AuthUserFile ./htpasswd
127 Require user no-such-user
130 # Allow CONNECT to local https port with authentication
131 <Proxy 127.0.0.1:47525>
137 AuthUserFile ./htpasswd
138 Require user no-such-user
141 # Fail non-proxy requests
151 Listen 127.0.0.1:47525
153 <VirtualHost 127.0.0.1:47525>
156 SSLCertificateFile ./test-cert.pem
157 SSLCertificateKeyFile ./test-key.pem
164 Alias /Basic/realm1/realm2/realm1 .
165 Alias /Basic/realm1/realm2 .
166 Alias /Basic/realm1/subdir .
167 Alias /Basic/realm1/not .
168 Alias /Basic/realm1 .
169 Alias /Basic/realm12/subdir .
170 Alias /Basic/realm12 .
171 Alias /Basic/realm2 .
172 Alias /Basic/realm3 .
175 <Location /Basic/realm1>
178 AuthUserFile ./htpasswd
182 <Location /Basic/realm1/not>
185 AuthUserFile ./htpasswd
189 <Location /Basic/realm12>
192 AuthUserFile ./htpasswd
193 Require user user1 user2
196 <Location /Basic/realm1/realm2>
199 AuthUserFile ./htpasswd
203 <Location /Basic/realm1/realm2/realm1>
206 AuthUserFile ./htpasswd
210 <Location /Basic/realm2>
213 AuthUserFile ./htpasswd
217 <Location /Basic/realm3>
220 AuthUserFile ./htpasswd
225 Alias /Digest/realm1/realm2/realm1 .
226 Alias /Digest/realm1/realm2 .
227 Alias /Digest/realm1/subdir .
228 Alias /Digest/realm1/expire .
229 Alias /Digest/realm1/not .
230 Alias /Digest/realm1 .
231 Alias /Digest/realm2 .
232 Alias /Digest/realm3 .
235 <Location /Digest/realm1>
238 AuthUserFile ./htdigest
239 AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
243 <Location /Digest/realm1/expire>
246 AuthUserFile ./htdigest
247 AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
248 AuthDigestNonceLifetime 2
252 <Location /Digest/realm1/not>
255 AuthUserFile ./htdigest
256 AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
260 <Location /Digest/realm1/realm2>
263 AuthUserFile ./htdigest
264 AuthDigestDomain /Digest/realm2 /Digest/realm1/realm2
268 <Location /Digest/realm1/realm2/realm1>
271 AuthUserFile ./htdigest
272 AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
276 <Location /Digest/realm2>
279 AuthUserFile ./htdigest
280 AuthDigestDomain /Digest/realm2 /Digest/realm1/realm2
284 <Location /Digest/realm3>
287 AuthUserFile ./htdigest
288 AuthDigestDomain /Digest/realm3
290 # test RFC2069-style Digest