Two little bugs

Piotr Sikora piotr.sikora at
Wed Dec 8 19:04:40 MSK 2010


> 2. using relative path fails:
> sudo nginx -c nginx.conf
> with error:
> [emerg]: open() "/usr/local/nginx/nginx.conf" failed (2: No such file
> or directory)

It's supposed to fail.

> As seen bellow, my --conf-path=/etc/nginx/nginx.conf.
> Why is nginx trying to open it at /usr/local/nginx/nginx.conf?
> Is it hard wired at some other place in the code?

Because you're passing only filename.

Skip -c option if you want to use path from build-time conf-path.

Best regards,
Piotr Sikora < piotr.sikora at >

More information about the nginx mailing list