Welcome! Log In Create A New Profile

Advanced

Re: Two little bugs

Piotr Sikora
December 08, 2010 12:50PM
Hi,

> It shouldn't matter.

Yes, is should.

> For the sake of portability in whatever filesystem it happens to be,
> if in trouble, nginx should look for the config file stated at
> --conf-path= not at some pre-wired location, be it /usr/local/nginx/ or
> whatever.

No, for 2 reasons:
1) "--conf-path" is path to a file, not a directory. It points to the
default configuration and if you skip -c option then nginx *is* using this
file.
2) When you specify relative filename (nginx -c nginx.conf) then nginx is
looking in directory specified during build in "--prefix". For example, with
"--prefix=/etc/nginx" (like it's set in OpenBSD and FreeBSD ports), nginx -c
nginx.conf is opening file from /etc/nginx/nginx.conf location.

Don't blame nginx for your misuses.

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Two little bugs

speedfirst December 07, 2010 01:45AM

Re: Two little bugs

Sergey A. Osokin December 07, 2010 02:12AM

Re: Two little bugs

Igor Sysoev December 07, 2010 02:42AM

Re: Two little bugs

speedfirst December 07, 2010 07:36PM

Re: Two little bugs

edogawaconan December 08, 2010 01:16AM

Re: Two little bugs

speedfirst December 08, 2010 08:52PM

Re: Two little bugs

Mark Alan December 08, 2010 10:56AM

Re: Two little bugs

Piotr Sikora December 08, 2010 11:14AM

Re: Two little bugs

Mark Alan December 08, 2010 12:34PM

Re: Two little bugs

Maxim Dounin December 08, 2010 12:46PM

Re: Two little bugs

Mark Alan December 08, 2010 02:04PM

Re: Two little bugs

Igor Sysoev December 08, 2010 03:46PM

Re: Two little bugs

Maxim Dounin December 08, 2010 04:36PM

Re: Two little bugs

Piotr Sikora December 08, 2010 12:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 288
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