File:  [parser3project] / parser3 / tests / httpd / site / httpd.p
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Dec 28 16:01:35 2024 UTC (17 months, 1 week ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
$request:uri and $request:path tests added (related to feature #1269)

@CLASS
httpd

@OPTIONS
partial

@config[cfg]
$result[
	$cfg
	^if($request:path eq "/index.html"){
		$.auth[ $.url[^^/index.html^$] $.login[auth] $.password[test] $.realm[auth test] ]
	}
	^if($request:path ne "/a b/"){
		$.404[/404.html]
	}
	^if(^request:path.left(7) eq "/broken"){
		$.deny[]
	}
]

@preprocess[return]
$response:server[Parser3]
$response:date[]

E-mail: