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

Igor Sysoev is at rambler-co.ru
Mon Mar 23 23:39:46 MSK 2009


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/*;
> }

Probably, it's better to ./configure --user=, --error_log-path=,
--pid-path=, and --http-log-path= and leave them commented out
in conf file as:

#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;


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list