Welcome! Log In Create A New Profile

Advanced

perl_modules directive is not allowed

November 15, 2010 10:35PM
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?
Subject Author Posted

perl_modules directive is not allowed

ronin November 15, 2010 10:35PM

Re: perl_modules directive is not allowed

ronin November 16, 2010 02:10AM

Re: perl_modules directive is not allowed

ronin November 16, 2010 02:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready