Changeset 91
- Timestamp:
- 03/04/2005 01:10:35 PM (3 years ago)
- Location:
- trunk/tests
- Files:
-
- 2 modified
-
core-response.t (modified) (4 diffs)
-
lighttpd.conf (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/core-response.t
r72 r91 3 3 use strict; 4 4 use IO::Socket; 5 use Test::More tests => 8;5 use Test::More tests => 10; 6 6 7 7 my $basedir = (defined $ENV{'top_builddir'} ? $ENV{'top_builddir'} : '..'); … … 208 208 209 209 210 210 211 ## Low-Level Response-Header Parsing - Content-Length 211 212 … … 230 231 ## Low-Level Response-Header Parsing - Location 231 232 232 233 234 233 @request = ( <<EOF 235 234 GET /dummydir HTTP/1.0 … … 246 245 ok(handle_http == 0, 'internal redirect in directory + querystring'); 247 246 248 247 ## simple-vhost 248 249 @request = ( <<EOF 250 GET /12345.txt HTTP/1.0 251 Host: no-simple.example.org 252 EOF 253 ); 254 @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'Content-Length' => '6' } ); 255 ok(handle_http == 0, 'disabling simple-vhost via conditionals'); 256 257 @request = ( <<EOF 258 GET /12345.txt HTTP/1.0 259 Host: simple.example.org 260 EOF 261 ); 262 @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } ); 263 ok(handle_http == 0, 'simple-vhost via conditionals'); 249 264 250 265 ok(stop_proc == 0, "Stopping lighttpd"); -
trunk/tests/lighttpd.conf
r56 r91 135 135 status.config-url = "/server-config" 136 136 137 simple-vhost.document-root = "pages"138 simple-vhost.server-root = "/tmp/lighttpd/servers/"139 simple-vhost.default-host = "www.example.org"140 141 137 $HTTP["host"] == "vvv.example.org" { 142 138 server.document-root = "/tmp/lighttpd/servers/www.example.org/pages/" … … 148 144 } 149 145 146 $HTTP["host"] == "no-simple.example.org" { 147 server.document-root = "/tmp/lighttpd/servers/123.example.org/pages/" 148 server.name = "zzz.example.org" 149 } 150 151 $HTTP["host"] !~ "(no-simple\.example\.org)" { 152 simple-vhost.document-root = "pages" 153 simple-vhost.server-root = "/tmp/lighttpd/servers/" 154 simple-vhost.default-host = "www.example.org" 155 } 156

