Feature request: NGX_CONF_DATA configuration parameter

Manlio Perillo manlio.perillo at gmail.com
Sun Mar 28 14:12:30 MSD 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

Currently, the configure code copy the configuration files "by hand":

cp conf/koi-win '\$(DESTDIR)$NGX_CONF_PREFIX'
cp conf/koi-utf '\$(DESTDIR)$NGX_CONF_PREFIX'
cp conf/win-utf '\$(DESTDIR)$NGX_CONF_PREFIX'

test -f '\$(DESTDIR)$NGX_CONF_PREFIX/mime.types' \
	|| cp conf/mime.types '\$(DESTDIR)$NGX_CONF_PREFIX'
cp conf/mime.types '\$(DESTDIR)$NGX_CONF_PREFIX/mime.types.default'

test -f '\$(DESTDIR)$NGX_CONF_PREFIX/fastcgi_params' \
	|| cp conf/fastcgi_params '\$(DESTDIR)$NGX_CONF_PREFIX'
cp conf/fastcgi_params \
	'\$(DESTDIR)$NGX_CONF_PREFIX/fastcgi_params.default'

test -f '\$(DESTDIR)$NGX_CONF_PREFIX/fastcgi.conf' \
	|| cp conf/fastcgi.conf '\$(DESTDIR)$NGX_CONF_PREFIX'
cp conf/fastcgi.conf '\$(DESTDIR)$NGX_CONF_PREFIX/fastcgi.conf.default'

test -f '\$(DESTDIR)$NGX_CONF_PATH' \
	|| cp conf/nginx.conf '\$(DESTDIR)$NGX_CONF_PATH'
cp conf/nginx.conf '\$(DESTDIR)$NGX_CONF_PREFIX/nginx.conf.default'



I would like, instead, that *all* files that should be copied in the
`conf` directory are stored in a configuration variable (like
NGX_CONF_DATA).

This will allow extension modules to add their own files in the list (as
an example, both my SCGI and WSGI module need to do this).


Another feature I would like to have, is the possibility to specify
addons specific options as `configure` script options, but this seems
more complex.


Thanks  Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuvK44ACgkQscQJ24LbaURokACbBubmtwQVKJZ7TPsJJToZQyEp
bgsAnRO+23NBOxf4whDVhEMFXG+FUetD
=1xga
-----END PGP SIGNATURE-----



More information about the nginx-devel mailing list