perl_modules directive is not allowed
ronin
nginx-forum at nginx.us
Tue Nov 16 06:35:13 MSK 2010
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: http://forum.nginx.org/read.php?2,151088,151088#msg-151088
More information about the nginx
mailing list