Merlin
March 23, 2009 05:18PM
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@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/
>
>
Subject Author Posted

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

Mark Alan March 22, 2009 08:38AM

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

Maxim Dounin March 22, 2009 02:08PM

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

Mark Alan March 23, 2009 05:32AM

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

Merlin March 23, 2009 02:20PM

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

Mark Alan March 23, 2009 04:53PM

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

Igor Sysoev March 23, 2009 04:58PM

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

Igor Sysoev March 23, 2009 04:58PM

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

Merlin March 23, 2009 05:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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