![Xavier Guimard](/assets/img/avatar_default.png)
PerlPostReadRequestHandler. So by encoding characters (%40 for 'a'), users can bypass some restrictions. Now PerlInitHandler is replaced by PerlHeaderParserHandler, so Lemonldap::NG is called after URI translation phase. - Correction of a bug in internal redirections: now internal redirections are not examined: for example, http://test.example.com/ is internaly redirected to /index.pl, but only the first request (/) is tested.
30 lines
644 B
Plaintext
30 lines
644 B
Plaintext
PerlOptions +GlobalRequest
|
|
<VirtualHost 127.0.0.3:*>
|
|
|
|
ServerName test.example.com
|
|
PerlRequire __DIR__/handler/MyHandler.pm
|
|
PerlHeaderParserHandler My::Package
|
|
<Location /reload>
|
|
Order deny,allow
|
|
Deny from all
|
|
Allow from 127.0.0.0/8
|
|
PerlHeaderParserHandler My::Package->refresh
|
|
</Location>
|
|
|
|
# Just to make example running (index.pl display authenticated user)
|
|
DocumentRoot __DIR__
|
|
<Directory __DIR__>
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
<Files *.pl>
|
|
SetHandler perl-script
|
|
PerlResponseHandler ModPerl::Registry
|
|
</Files>
|
|
|
|
<IfModule mod_dir.c>
|
|
DirectoryIndex index.pl index.html
|
|
</IfModule>
|
|
|
|
</VirtualHost>
|