Welcome! Log In Create A New Profile

Advanced

[Patch] add -p option to override prefix

All files from this thread

File Name File Size   Posted by Date  
nginx-prefix.patch 1.9 KB open | download Jérôme Loyet 03/24/2009 Read message
ngx_runtime_config.patch 2 KB open | download Manlio Perillo 03/25/2009 Read message
nginx-prefix-v2.patch 14.4 KB open | download Jérôme Loyet 03/25/2009 Read message
nginx-prefix-full-v2.patch 15.8 KB open | download Jérôme Loyet 03/25/2009 Read message
nginx-prefix-v2.patch 18 KB open | download Jérôme Loyet 03/31/2009 Read message
Jérôme Loyet
March 24, 2009 11:46AM
hi,

I attach a patch which add the -p option to nginx. This option
overrides the --prefix path and also the $NGX_CONF_PREFIX variable
which is used as prefix for "include" directives. So, all relative
path will be prefix with the value of this option.

I don't know if it covers all cases but it seems ok in my env.

Why did I want to make such a patch ?
Because i'll be running several instances of nginx on the same box,
with similar conf and similar directorys (/path/xx/conf,
/path/xx/docs, /path/xx/logs, /path/xx/cache, /path/xx/tmp, ...). With
same conf, I can launch multiple instances of nginx with
/path/to/nginx -p /path/www, -p /patch/www2, ...

I could run one instance of nginx with many "server" directives but
the box is mutualized between clients and clients doesn't want to
share their instance with others ...

You could then imagine many cases in which this option could be usefull.

++ jerome
Attachments:
open | download - nginx-prefix.patch (1.9 KB)
Subject Author Posted

[Patch] add -p option to override prefix Attachments

Jérôme Loyet March 24, 2009 11:46AM

Re: [Patch] add -p option to override prefix

Juan Fco. Giordana March 24, 2009 12:27PM

Re: [Patch] add -p option to override prefix

Jérôme Loyet March 24, 2009 01:17PM

Re: [Patch] add -p option to override prefix

Kirill A. Korinskiy March 24, 2009 03:33PM

Re: [Patch] add -p option to override prefix

Jérôme Loyet March 24, 2009 05:59PM

Re: [Patch] add -p option to override prefix

Igor Sysoev March 25, 2009 11:56AM

Re: [Patch] add -p option to override prefix Attachments

Jérôme Loyet March 25, 2009 04:16PM

Re: [Patch] add -p option to override prefix Attachments

Jérôme Loyet March 25, 2009 05:55PM

Re: [Patch] add -p option to override prefix

Jérôme Loyet March 26, 2009 08:27AM

Re: [Patch] add -p option to override prefix

Maxim Dounin March 26, 2009 08:56AM

Re: [Patch] add -p option to override prefix

Igor Sysoev March 26, 2009 09:02AM

Re: [Patch] add -p option to override prefix Attachments

Jérôme Loyet March 31, 2009 04:34PM

Re: [Patch] add -p option to override prefix Attachments

Manlio Perillo March 25, 2009 03:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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