Adding a module, config variables unknown

nginx at fuse969.com nginx at fuse969.com
Wed Aug 27 00:00:02 MSD 2008


I've tried some of the suggestions but still getting 
the same error

here's snip of my config

location /videos {
                accesskey             on;
                accesskey_hashmethod  md5;
                accesskey_arg         "key";
                accesskey_signature   "myPass$remote_addr";



[root at static /usr/local/chtest]# ./sbin/nginx -t -c conf/nginx.conf
2008/08/26 14:58:28 [emerg] 25808#0: unknown directive "accesskey" in
conf/nginx.conf:53
2008/08/26 14:58:28 [emerg] 25808#0: the configuration file conf/nginx.conf
test failed
[root at static /usr/local/chtest]# vi conf/nginx.conf



On Thu, 21 Aug 2008 19:25:22 +0400, Igor Sysoev <is at rambler-co.ru> wrote:
> On Thu, Aug 21, 2008 at 05:07:41PM +0200, Bjoern wrote:
> 
>> it seems the absolute path was the problem.
>> My solution is this:
>> cd ~/devel/nginx
>> mkdir src/addons
>> ln -s /home/myuser/data/development/workspace/ngx_mymodule/src/
>> src/addons/ngx_mymodule
>> ./configure --add-module=src/addons/ngx_mymodule
>> make
>> make install
>>
>> I don't know why the absolute path doesn't work. The oddest thing is,
>> that everything gets compiled perfectly well and that the binary
>> contains strings containing 'ngx_mymodule', so it's in there.
>> I'm not sure, why the path is relevant after the compile process
>> succeeded... but it seems to be. Can anybody explain this to me, please?
>> Or am I just misinterpreting anything?
> 
> I commonly use
>      --add-module=../../src/addon/module
> 
> and did not tried aboslute path, I will look.
> 
>> Thanks,
>> Bjoern
>>
>> Bjoern wrote:
>> >Hi,
>> >sorry.. That was just the example...
>> >I used the absolute path of course...
>> >/home/myuser/data/development/workspace/ngx_accesskey/src/ to be exact.
>> >
>> >Unfortunately, that's not the problem.
>> >
>> >Thanks,
>> >Bjoern
>> >
>> >Valery Kholodkov wrote:
>> >>"Bjoern" <bjoern at pokerstrategy.com> wrote:
>> >>
>> >>
>> >>>Hi everybody,
>> >>> I have a problem adding a module.
>> >>>
>> >>>I've downloaded and extracted the nginx sources.
>> >>>~/devel/nginx/
>> >>>
>> >>>Downloaded the sources of the module called "accesskey".
>> >>>Extracted the files to a folder let's call it
>> >>>~/devel/ngx_accesskey/src/
>> >>>
>> >>>cd ~/devel/nginx
>> >>>./configure --add-module=~/devel/ngx_accesskey/src/
>> >>>
>> >>                           ^^^^^^^^^^^^^^^^^^^^^^^^^^
>> >>Tilde (~) is not going to be expanded here. Use full path.
>> >>
>> >>
>> >
>> >
>>
> 
> --
> Igor Sysoev
> http://sysoev.ru/en/






More information about the nginx mailing list