Perl_modules directive is not allowed

Environment: ubuntu10:10 nginx0.8.53

nginx compile parameters:
nginx version: nginx/0.8.53
built by gcc 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
TLS SNI support enabled
configure arguments: --user=www-data --group=www-data --prefix=/usr
–conf-path=/etc/nginx/nginx.conf
–error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid
–lock-path=/var/lock/nginx.lock
–http-log-path=/var/log/nginx/access.log
–http-client-body-temp-path=/var/lib/nginx/body
–http-proxy-temp-path=/var/lib/nginx/proxy
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug
–with-http_stub_status_module --with-http_flv_module
–with-http_ssl_module --with-http_dav_module
–with-http_gzip_static_module --with-http_realip_module --with-mail
–with-mail_ssl_module --with-ipv6 --with-http_perl_module
–with-sha1=/usr/lib
–add-module=/var/lib/gems/1.8/gems/passenger-3.0.0/ext/nginx

nginx site profile:

server {
listen 80;
server_name hg.abc.net;
perl_modules /redmine/extra/svn;
perl_require Redmine.pm;

location / {
root /repos;
uwsgi_passunix:///dev/shm/hgweb.sock;
include uwsgi_params;
uwsgi_param SCRIPT_NAME /;

                auth_basic   "HG Repository";
                Perl Redmine::access_handler;
                Perl Redmine::authen_handler;
           }
   }

Run the command: nginx -t
Error log:
[emerg]: “perl_modules” directive is not allowed here in
/etc/nginx/sites-enabled/hg_repos:4
configuration file /etc/nginx/nginx.conf test failed

Who can tell me how to deal with the problem?

Posted at Nginx Forum:

I have solved the problem
move:
perl_modules /redmine/extra/svn;
perl_require Redmine.pm;
to :/etc/nginx/nginx.conf

But redmine.pm still can not load successfully, error message is:

[emerg]: require_pv(“Redmine.pm”) failed: "Can’t locate
Apache2/Module.pm in @INC (@INC contains: /usr/perl/lib /etc/perl
/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at /usr/perl/lib/Redmine.pm line 106.
BEGIN failed–compilation aborted at /usr/perl/lib/Redmine.pm line 106.

Posted at Nginx Forum:

I saw inside the file like this:
use Apache2:: Module;
use Apache2:: Access;
use Apache2:: ServerRec qw ();
use Apache2:: RequestRec qw ();
use Apache2:: RequestUtil qw ();
use Apache2:: Const qw (: common: override: cmd_how);
use APR:: Pool ();
use APR:: Table ();

Use Apache2:: Directive qw ();

Nginx is kind of how does the corresponding statement?

Posted at Nginx Forum: