--- parser3/etc/auto.p.in 2021/01/20 10:51:10 1.10 +++ parser3/etc/auto.p.in 2024/12/28 14:00:52 1.18 @@ -1,4 +1,4 @@ -#$Id: auto.p.in,v 1.10 2021/01/20 10:51:10 moko Exp $ +#$Id: auto.p.in,v 1.18 2024/12/28 14:00:52 moko Exp $ @auto[] #source/client charsets @@ -18,8 +18,8 @@ $response:content-type[ @conf[filespec] $confdir[^file:dirname[$filespec]] -$charsetsdir[$confdir/charsets] -$sqldriversdir[$confdir/lib] +$charsetsdir[@datarootdir@/charsets] +$sqldriversdir[@libdir@] $CHARSETS[ # $.cp866[$charsetsdir/cp866.cfg] @@ -96,7 +96,11 @@ zip application/zip }] $LIMITS[ - $.post_max_size(10*0x400*0x400) + $.post_max_size(64*0x400*0x400) +# $.max_file_size(512*0x400*0x400) +# $.max_loop(100000) +# $.max_array(1000000) +# $.max_recursion(1000) ] #$HTTPD[ @@ -164,7 +168,7 @@ $result(def $env:REMOTE_ADDR && ^env:REM }{ ^if($exception.type eq "file.missing"){ # $response:location[/404/] - $response:status(404) + ^httpd:404[] }{ ^unhandled_exception_release[$exception;$stack] } @@ -212,6 +216,8 @@ $line[$env:REMOTE_ADDR [^now.sql-string[ $response:status[404] The requested URL was not found on this server. +@config[result] + @preprocess[return] @@ -219,7 +225,7 @@ The requested URL was not found on this #$request:document-root[/website/folder] -$cfg[ +$cfg[^config[ $.parser[\.(html)^$] $.index[index.html] # $.autoindex(true) @@ -231,13 +237,12 @@ $cfg[ $.403[Permission denied] $.memory(64000) # $.log[/access.log] -] +]] $response:server[Parser$env:PARSER_VERSION] $response:date[^date::now[]] $response:connection[close] -$uri[^request:uri.match[\?.*][]{}] -$uri[^string:unescape[uri;$uri; $.charset[UTF-8] ]] +$uri[$request:path] ^if(def $cfg.log){ ^log[$cfg.log]