add missing slash in %configure
[platform/upstream/libsoup.git] / tests / httpd.conf.24.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 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
33
34 DirectoryIndex index.txt
35 TypesConfig /dev/null
36 AddType application/x-httpd-php .php
37 Redirect permanent /redirected /index.txt
38
39 # Proxy #1: unauthenticated
40 Listen 127.0.0.1:47526
41 <VirtualHost 127.0.0.1:47526>
42   ProxyRequests On
43   AllowCONNECT 47525
44
45   # Deny proxying by default
46   <Proxy *>
47     Require all denied
48   </Proxy>
49
50   # Allow local http connections
51   <Proxy http://127.0.0.1*>
52     Require all granted
53   </Proxy>
54
55   # Allow CONNECT to local https port
56   <Proxy 127.0.0.1:47525>
57     Require all granted
58   </Proxy>
59
60   # Deny non-proxy requests
61   <Directory />
62     Require all denied
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     Require all denied
75   </Proxy>
76
77   # Allow local http connections with authentication
78   <Proxy http://127.0.0.1:47524*>
79     AuthType Basic
80     AuthName realm1
81     AuthUserFile ./htpasswd
82     Require valid-user
83   </Proxy>
84
85   # Allow CONNECT to local https port with authentication
86   <Proxy 127.0.0.1:47525>
87     AuthType Basic
88     AuthName realm1
89     AuthUserFile ./htpasswd
90     Require valid-user
91   </Proxy>
92
93   # Fail non-proxy requests
94   <Directory />
95     Require all denied
96   </Directory>
97 </VirtualHost>
98
99 # Proxy #3: unauthenticatable-to
100 Listen 127.0.0.1:47528
101 <VirtualHost 127.0.0.1:47528>
102   ProxyRequests On
103   AllowCONNECT 47525
104
105   # Deny proxying by default
106   <Proxy *>
107     Require all denied
108   </Proxy>
109
110   # Allow local http connections with authentication
111   <Proxy http://127.0.0.1:47524*>
112     AuthType Basic
113     AuthName realm1
114     AuthUserFile ./htpasswd
115     Require user no-such-user
116   </Proxy>
117
118   # Allow CONNECT to local https port with authentication
119   <Proxy 127.0.0.1:47525>
120     AuthType Basic
121     AuthName realm1
122     AuthUserFile ./htpasswd
123     Require user no-such-user
124   </Proxy>
125
126   # Fail non-proxy requests
127   <Directory />
128     Require all denied
129   </Directory>
130 </VirtualHost>
131
132
133 # SSL setup
134 <IfModule mod_ssl.c>
135   Listen 127.0.0.1:47525
136
137   <VirtualHost 127.0.0.1:47525>
138     SSLEngine on
139
140     SSLCertificateFile ./test-cert.pem
141     SSLCertificateKeyFile ./test-key.pem
142
143   </VirtualHost>
144 </IfModule>
145
146
147 # Basic auth tests
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 .
157 Alias /Basic .
158
159 <Location /Basic/realm1>
160   AuthType Basic
161   AuthName realm1
162   AuthUserFile ./htpasswd
163   Require user user1
164 </Location>
165
166 <Location /Basic/realm1/not>
167   AuthType Basic
168   AuthName realm1
169   AuthUserFile ./htpasswd
170   Require user user2
171 </Location>
172
173 <Location /Basic/realm12>
174   AuthType Basic
175   AuthName realm12
176   AuthUserFile ./htpasswd
177   Require user user1 user2
178 </Location>
179
180 <Location /Basic/realm1/realm2>
181   AuthType Basic
182   AuthName realm2
183   AuthUserFile ./htpasswd
184   Require user user2
185 </Location>
186
187 <Location /Basic/realm1/realm2/realm1>
188   AuthType Basic
189   AuthName realm1
190   AuthUserFile ./htpasswd
191   Require user user1
192 </Location>
193
194 <Location /Basic/realm2>
195   AuthType Basic
196   AuthName realm2
197   AuthUserFile ./htpasswd
198   Require user user2
199 </Location>
200
201 <Location /Basic/realm3>
202   AuthType Basic
203   AuthName realm3
204   AuthUserFile ./htpasswd
205   Require user user3
206 </Location>
207
208 # Digest auth tests
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 .
217 Alias /Digest .
218
219 <Location /Digest/realm1>
220   AuthType Digest
221   AuthName realm1
222   AuthUserFile ./htdigest
223   AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
224   Require valid-user
225 </Location>
226
227 <Location /Digest/realm1/expire>
228   AuthType Digest
229   AuthName realm1
230   AuthUserFile ./htdigest
231   AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
232   AuthDigestNonceLifetime 2
233   Require valid-user
234 </Location>
235
236 <Location /Digest/realm1/not>
237   AuthType Digest
238   AuthName realm1
239   AuthUserFile ./htdigest
240   AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
241   Require user user2
242 </Location>
243
244 <Location /Digest/realm1/realm2>
245   AuthType Digest
246   AuthName realm2
247   AuthUserFile ./htdigest
248   AuthDigestDomain /Digest/realm2 /Digest/realm1/realm2
249   Require valid-user
250 </Location>
251
252 <Location /Digest/realm1/realm2/realm1>
253   AuthType Digest
254   AuthName realm1
255   AuthUserFile ./htdigest
256   AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
257   Require valid-user
258 </Location>
259
260 <Location /Digest/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/realm3>
269   AuthType Digest
270   AuthName realm3
271   AuthUserFile ./htdigest
272   AuthDigestDomain /Digest/realm3
273   Require valid-user
274   # test RFC2069-style Digest
275   AuthDigestQop none
276 </Location>