edogawaconan Wrote:
-------------------------------------------------------
> On Wed, Dec 8, 2010 at 7:36 AM, speedfirst wrote:
> > nginx/sbin/nginx -c nginx.conf
> >
> >
> > will get segment fault
>
> I can't reproduce this either. Please provide
> output of nginx/sbin/nginx -V
>
>
Hey, I'm working on nginx dev for Zimbra. Here are my "-V" output.
[code]
speedfirst@u10:/opt/zimbra$ nginx/sbin/nginx -c conf/nginx.conf -V
nginx version: nginx/0.8.48
built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
TLS SNI support enabled
configure arguments: --prefix=/opt/zimbra/nginx-0.8-zimbra --with-cc-opt='-g -I/opt/zimbra/cyrus-sasl-2.1.23.3z/include -I/opt/zimbra/openssl-1.0.0a/include -I/opt/zimbra/include' --with-ld-opt='-L/opt/zimbra/cyrus-sasl-2.1.23.3z/lib -L/opt/zimbra/openssl-1.0.0a/lib -L/opt/zimbra/lib' --with-debug --with-http_ssl_module --with-http_stub_status_module --with-pcre --with-http_upstream_zmauth_module --with-mail --with-mail-sasl --with-mail_ssl_module --error-log-path=/opt/zimbra/log/nginx.log --http-log-path=/opt/zimbra/log/nginx.access.log --http-client-body-temp-path=/opt/zimbra/data/tmp/nginx/client --http-proxy-temp-path=/opt/zimbra/data/tmp/nginx/proxy --http-fastcgi-temp-path=/opt/zimbra/data/tmp/nginx/fastcgi
[/code]
And I try to use /opt/zimbra/conf/nginx.conf with the relative path. According to above comments, nginx uses "--prefix" so it should try to find /opt/zimbra/nginx-0.8.48/conf/nginx.conf. If not found, should report an [emerg] error, rather than segment fault. Did I make something wrong in build? Could I send the source I have to you to check?
[code]
speedfirst@u10:/opt/zimbra$ sudo nginx/sbin/nginx -c conf/nginx.conf
[sudo] password for speedfirst:
Segmentation fault
[/code]