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 mpm_prefork_module @APACHE_MODULE_DIR@/mod_mpm_prefork.so
17 LoadModule alias_module @APACHE_MODULE_DIR@/mod_alias.so
18 LoadModule auth_basic_module @APACHE_MODULE_DIR@/mod_auth_basic.so
19 LoadModule auth_digest_module @APACHE_MODULE_DIR@/mod_auth_digest.so
20 LoadModule authn_core_module @APACHE_MODULE_DIR@/mod_authn_core.so
21 LoadModule authn_file_module @APACHE_MODULE_DIR@/mod_authn_file.so
22 LoadModule authz_core_module @APACHE_MODULE_DIR@/mod_authz_core.so
23 LoadModule authz_host_module @APACHE_MODULE_DIR@/mod_authz_host.so
24 LoadModule authz_user_module @APACHE_MODULE_DIR@/mod_authz_user.so
25 LoadModule dir_module @APACHE_MODULE_DIR@/mod_dir.so
26 LoadModule mime_module @APACHE_MODULE_DIR@/mod_mime.so
27 @IF_HAVE_PHP@LoadModule php5_module @APACHE_PHP_MODULE_DIR@/@APACHE_PHP_MODULE@
28 LoadModule proxy_module @APACHE_MODULE_DIR@/mod_proxy.so
29 LoadModule proxy_http_module @APACHE_MODULE_DIR@/mod_proxy_http.so
30 LoadModule proxy_connect_module @APACHE_MODULE_DIR@/mod_proxy_connect.so
31 LoadModule ssl_module @APACHE_SSL_MODULE_DIR@/mod_ssl.so
32 LoadModule unixd_module @APACHE_SSL_MODULE_DIR@/mod_unixd.so
34 DirectoryIndex index.txt
36 AddType application/x-httpd-php .php
37 Redirect permanent /redirected /index.txt
39 # Proxy #1: unauthenticated
40 Listen 127.0.0.1:47526
41 <VirtualHost 127.0.0.1:47526>
45 # Deny proxying by default
50 # Allow local http connections
51 <Proxy http://127.0.0.1*>
55 # Allow CONNECT to local https port
56 <Proxy 127.0.0.1:47525>
60 # 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
77 # Allow local http connections with authentication
78 <Proxy http://127.0.0.1:47524*>
81 AuthUserFile ./htpasswd
85 # Allow CONNECT to local https port with authentication
86 <Proxy 127.0.0.1:47525>
89 AuthUserFile ./htpasswd
93 # Fail non-proxy requests
99 # Proxy #3: unauthenticatable-to
100 Listen 127.0.0.1:47528
101 <VirtualHost 127.0.0.1:47528>
105 # Deny proxying by default
110 # Allow local http connections with authentication
111 <Proxy http://127.0.0.1:47524*>
114 AuthUserFile ./htpasswd
115 Require user no-such-user
118 # Allow CONNECT to local https port with authentication
119 <Proxy 127.0.0.1:47525>
122 AuthUserFile ./htpasswd
123 Require user no-such-user
126 # Fail non-proxy requests
135 Listen 127.0.0.1:47525
137 <VirtualHost 127.0.0.1:47525>
140 SSLCertificateFile ./test-cert.pem
141 SSLCertificateKeyFile ./test-key.pem
148 Alias /Basic/realm1/realm2/realm1 .
149 Alias /Basic/realm1/realm2 .
150 Alias /Basic/realm1/subdir .
151 Alias /Basic/realm1/not .
152 Alias /Basic/realm1 .
153 Alias /Basic/realm12/subdir .
154 Alias /Basic/realm12 .
155 Alias /Basic/realm2 .
156 Alias /Basic/realm3 .
159 <Location /Basic/realm1>
162 AuthUserFile ./htpasswd
166 <Location /Basic/realm1/not>
169 AuthUserFile ./htpasswd
173 <Location /Basic/realm12>
176 AuthUserFile ./htpasswd
177 Require user user1 user2
180 <Location /Basic/realm1/realm2>
183 AuthUserFile ./htpasswd
187 <Location /Basic/realm1/realm2/realm1>
190 AuthUserFile ./htpasswd
194 <Location /Basic/realm2>
197 AuthUserFile ./htpasswd
201 <Location /Basic/realm3>
204 AuthUserFile ./htpasswd
209 Alias /Digest/realm1/realm2/realm1 .
210 Alias /Digest/realm1/realm2 .
211 Alias /Digest/realm1/subdir .
212 Alias /Digest/realm1/expire .
213 Alias /Digest/realm1/not .
214 Alias /Digest/realm1 .
215 Alias /Digest/realm2 .
216 Alias /Digest/realm3 .
219 <Location /Digest/realm1>
222 AuthUserFile ./htdigest
223 AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
227 <Location /Digest/realm1/expire>
230 AuthUserFile ./htdigest
231 AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
232 AuthDigestNonceLifetime 2
236 <Location /Digest/realm1/not>
239 AuthUserFile ./htdigest
240 AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
244 <Location /Digest/realm1/realm2>
247 AuthUserFile ./htdigest
248 AuthDigestDomain /Digest/realm2 /Digest/realm1/realm2
252 <Location /Digest/realm1/realm2/realm1>
255 AuthUserFile ./htdigest
256 AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
260 <Location /Digest/realm2>
263 AuthUserFile ./htdigest
264 AuthDigestDomain /Digest/realm2 /Digest/realm1/realm2
268 <Location /Digest/realm3>
271 AuthUserFile ./htdigest
272 AuthDigestDomain /Digest/realm3
274 # test RFC2069-style Digest