newbie help - unknown directive memc_pass

Yichun Zhang (agentzh) agentzh at
Sun Feb 23 19:52:36 UTC 2014


On Sun, Feb 23, 2014 at 9:40 AM, vikingboy wrote:
> but still get the error when trying to restart nginx.
> 2014/02/23 17:20:59 [emerg] 31056#0: unknown directive "memc_pass" in
> /etc/nginx/sites-enabled/

One common cause is that your nginx startup script invokes a different
nginx in another path which does not include the ngx_memc module.

Try starting your new nginx with its absolute path directly, that is,

    /path/to/your/new/nginx/sbin/nginx -c /path/to/nginx.conf -p

> and also tried compiling the openresty build but identical results - still
> no known directive for memc_pass.

The ngx_openresty bundle installs nginx into
/usr/local/openresty/nginx/ by default, so ensure your startup script
start the nginx in the right path, that is,


See the following sample for more details:


More information about the nginx mailing list