Bug in the nginx-0.7.xx include .../conf.d/*.conf process ?

Merlin merlin at mahalo.com
Tue Mar 24 00:01:10 MSK 2009


Igor,

The configuration in debian is pretty much as follows:
configure arguments: --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid
--lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-proxy-temp-path=/var/lib/nginx/proxy
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug
--with-http_stub_status_module --with-http_flv_module --with-http_ssl_module
--with-http_dav_module

Mark,

This is a bit out of scope for this list - you need to talk to the
maintainer of the package you use.

That said, Igor is correct in pointing out as I was about it to that there
is no need for the full path, which is why I wrote the suggested
configuration the way I did.  Also in the style of these debian
configurations you would move all the non-include directives into files in
conf.d or into httpd.conf (the global server configuration file) and NOT
have them in the main nginx block.

- Merlin


2009/3/23 Igor Sysoev <is at rambler-co.ru>

> On Mon, Mar 23, 2009 at 08:27:03PM +0000, Mark Alan wrote:
>
> > Merlin wrote:
> > >The simplest debian-like nginx.conf is something like this:
> >
> > In Ubuntu/Debian the main differences are:
> >
> > # debian's web server user (instead of nobody or apache)
> > -#user  nobody;
> > +user www-data;
> >
> > # debian's /etc/logrotate.d/nginx writes to /var/log/nginx/*.log
> > +error_log  /var/log/nginx/error.log;
> > +pid  /var/run/nginx.pid;
> >
> > http {
> > -    include  mime.types;
> > +    include  /etc/nginx/mime.types;
> >
> > -    #access_log  logs/access.log  main;
> > +    access_log       /var/log/nginx/access.log;
> >
> > +    tcp_nodelay  on;
> >
> > +    gzip  on;
> >
> > +    include /etc/nginx/conf.d/*.conf;
> > +    include /etc/nginx/sites-enabled/*;
> > }
>
>
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090323/adfeb105/attachment.html>


More information about the nginx mailing list