Welcome! Log In Create A New Profile

Advanced

Re: Two little bugs

Mark Alan
December 08, 2010 10:56AM
On Tue, 7 Dec 2010 10:38:26 +0300, Igor Sysoev <igor@sysoev.ru> wrote:

> > 1. if the argument of nginx -c is a relative path, it wil trigger a
> > segment fault. Meant to be implemented like that? Because since
> > 0.5.x to current release contain this bug.
>
> Could you show a test case ?
> I can not reproduce the issue.

While using Ubuntu 10.10+Nginx 0.8.53

1. using full path works:
sudo nginx -c /etc/nginx/nginx.conf

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)

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?

Regards,

M.

$ nginx -V
nginx version: nginx0.8.53
TLS SNI support enabled
configure arguments: --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--http-log-path=/var/log/nginx/access.log
--http-proxy-temp-path=/var/lib/nginx/proxy
--lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
--with-http_ssl_module --without-http_limit_req_module
--without-mail_pop3_module --without-mail_smtp_module
--without-mail_imap_module --without-http_uwsgi_module
--without-http_scgi_module --without-http-cache




>
>


_______________________________________________
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: 251
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