I'm trying to test the example module to resize images posted at http://wiki.nginx.org/EmbeddedPerlImageResize
I see this error after re-compiling nginx with Embedded Perl support, adding the nginx.conf example from http://wiki.nginx.org/EmbeddedPerlImageResize and restarting nginx with sudo nginx -reload:
2011/12/12 10:23:58 [notice] 16330#0: signal process started
2011/12/12 10:23:58 [emerg] 2993#0: unknown directive "perl_modules" in /usr/local/nginx/conf/nginx.conf
The directive is listed here: http://wiki.nginx.org/EmbeddedPerlModule#perl_modules
Some background:
I'm using OS X Lion 10.7.2, and I installed perl with MacPorts:
$ perl -v
This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-multi-2level
I installed nginx from source using --with-http_perl_module
$ nginx -V
nginx: nginx version: nginx/1.0.10
nginx: built by gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
nginx: configure arguments: --with-http_stub_status_module --with-http_perl_module --sbin-path=/usr/local/sbin/nginx --add-module=../nginx_auth_mysql/
After updating my nginx.conf and adding in the example from http://wiki.nginx.org/EmbeddedPerlImageResize testing the nginx conf seems fine:
$ sudo nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
I'm not sure where to go from here. Did my nginx re-compile --with-http_perl_module not work since the error says unknown directive "perl_modules"?