add missing slash in %configure
[platform/upstream/libsoup.git] / tests / httpd.conf.22.in
1 # http.conf used for testing auth-test
2
3 ServerName 127.0.0.1
4 Listen 127.0.0.1:47524
5
6 DocumentRoot .
7
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
12
13 # Change this to "./error.log" if it's failing and you don't know why
14 ErrorLog /dev/null
15
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
29
30 DirectoryIndex index.txt
31 TypesConfig /dev/null
32 AddType application/x-httpd-php .php
33 Redirect permanent /redirected /index.txt
34
35 # Proxy #1: unauthenticated
36 Listen 127.0.0.1:47526
37 <VirtualHost 127.0.0.1:47526>
38   ProxyRequests On
39   AllowCONNECT 47525
40
41   # Deny proxying by default
42   <Proxy *>
43     Order Deny,Allow
44     Deny from all
45   </Proxy>
46
47   # Allow local http connections
48   <Proxy http://127.0.0.1*>
49     Order Allow,Deny
50     Allow from all
51   </Proxy>
52
53   # Allow CONNECT to local https port
54   <Proxy 127.0.0.1:47525>
55     Order Allow,Deny
56     Allow from all
57   </Proxy>
58
59   # Deny non-proxy requests
60   <Directory />
61     Order Deny,Allow
62     Deny from all
63   </Directory>
64 </VirtualHost>
65
66 # Proxy #2: authenticated
67 Listen 127.0.0.1:47527
68 <VirtualHost 127.0.0.1:47527>
69   ProxyRequests On
70   AllowCONNECT 47525
71
72   # Deny proxying by default
73   <Proxy *>
74     Order Deny,Allow
75     Deny from all
76   </Proxy>
77
78   # Allow local http connections with authentication
79   <Proxy http://127.0.0.1:47524*>
80     Order Allow,Deny
81     Allow from all
82
83     AuthType Basic
84     AuthName realm1
85     AuthUserFile ./htpasswd
86     Require valid-user
87   </Proxy>
88
89   # Allow CONNECT to local https port with authentication
90   <Proxy 127.0.0.1:47525>
91     Order Allow,Deny
92     Allow from all
93
94     AuthType Basic
95     AuthName realm1
96     AuthUserFile ./htpasswd
97     Require valid-user
98   </Proxy>
99
100   # Fail non-proxy requests
101   <Directory />
102     Order Deny,Allow
103     Deny from all
104   </Directory>
105 </VirtualHost>
106
107 # Proxy #3: unauthenticatable-to
108 Listen 127.0.0.1:47528
109 <VirtualHost 127.0.0.1:47528>
110   ProxyRequests On
111   AllowCONNECT 47525
112
113   # Deny proxying by default
114   <Proxy *>
115     Order Deny,Allow
116     Deny from all
117   </Proxy>
118
119   # Allow local http connections with authentication
120   <Proxy http://127.0.0.1:47524*>
121     Order Allow,Deny
122     Allow from all
123
124     AuthType Basic
125     AuthName realm1
126     AuthUserFile ./htpasswd
127     Require user no-such-user
128   </Proxy>
129
130   # Allow CONNECT to local https port with authentication
131   <Proxy 127.0.0.1:47525>
132     Order Allow,Deny
133     Allow from all
134
135     AuthType Basic
136     AuthName realm1
137     AuthUserFile ./htpasswd
138     Require user no-such-user
139   </Proxy>
140
141   # Fail non-proxy requests
142   <Directory />
143     Order Deny,Allow
144     Deny from all
145   </Directory>
146 </VirtualHost>
147
148
149 # SSL setup
150 <IfModule mod_ssl.c>
151   Listen 127.0.0.1:47525
152
153   <VirtualHost 127.0.0.1:47525>
154     SSLEngine on
155
156     SSLCertificateFile ./test-cert.pem
157     SSLCertificateKeyFile ./test-key.pem
158
159   </VirtualHost>
160 </IfModule>
161
162
163 # Basic auth tests
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 .
173 Alias /Basic .
174
175 <Location /Basic/realm1>
176   AuthType Basic
177   AuthName realm1
178   AuthUserFile ./htpasswd
179   Require user user1
180 </Location>
181
182 <Location /Basic/realm1/not>
183   AuthType Basic
184   AuthName realm1
185   AuthUserFile ./htpasswd
186   Require user user2
187 </Location>
188
189 <Location /Basic/realm12>
190   AuthType Basic
191   AuthName realm12
192   AuthUserFile ./htpasswd
193   Require user user1 user2
194 </Location>
195
196 <Location /Basic/realm1/realm2>
197   AuthType Basic
198   AuthName realm2
199   AuthUserFile ./htpasswd
200   Require user user2
201 </Location>
202
203 <Location /Basic/realm1/realm2/realm1>
204   AuthType Basic
205   AuthName realm1
206   AuthUserFile ./htpasswd
207   Require user user1
208 </Location>
209
210 <Location /Basic/realm2>
211   AuthType Basic
212   AuthName realm2
213   AuthUserFile ./htpasswd
214   Require user user2
215 </Location>
216
217 <Location /Basic/realm3>
218   AuthType Basic
219   AuthName realm3
220   AuthUserFile ./htpasswd
221   Require user user3
222 </Location>
223
224 # Digest auth tests
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 .
233 Alias /Digest .
234
235 <Location /Digest/realm1>
236   AuthType Digest
237   AuthName realm1
238   AuthUserFile ./htdigest
239   AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
240   Require valid-user
241 </Location>
242
243 <Location /Digest/realm1/expire>
244   AuthType Digest
245   AuthName realm1
246   AuthUserFile ./htdigest
247   AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
248   AuthDigestNonceLifetime 2
249   Require valid-user
250 </Location>
251
252 <Location /Digest/realm1/not>
253   AuthType Digest
254   AuthName realm1
255   AuthUserFile ./htdigest
256   AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
257   Require user user2
258 </Location>
259
260 <Location /Digest/realm1/realm2>
261   AuthType Digest
262   AuthName realm2
263   AuthUserFile ./htdigest
264   AuthDigestDomain /Digest/realm2 /Digest/realm1/realm2
265   Require valid-user
266 </Location>
267
268 <Location /Digest/realm1/realm2/realm1>
269   AuthType Digest
270   AuthName realm1
271   AuthUserFile ./htdigest
272   AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
273   Require valid-user
274 </Location>
275
276 <Location /Digest/realm2>
277   AuthType Digest
278   AuthName realm2
279   AuthUserFile ./htdigest
280   AuthDigestDomain /Digest/realm2 /Digest/realm1/realm2
281   Require valid-user
282 </Location>
283
284 <Location /Digest/realm3>
285   AuthType Digest
286   AuthName realm3
287   AuthUserFile ./htdigest
288   AuthDigestDomain /Digest/realm3
289   Require valid-user
290   # test RFC2069-style Digest
291   AuthDigestQop none
292 </Location>