Configuration options

Hallo all

I have a bunch of questions regarding the configuration switches at
compile time.

  1. Assuming I would set “–without-http” does that then automatically
    sets the following switches as well or do I need to set them explicitly?
    –without-http_charset_module
    –without-http_gzip_module
    –without-http_ssi_module
    –without-http_userid_module
    –without-http_access_module
    –without-http_auth_basic_module
    –without-http_autoindex_module
    –without-http_geo_module
    –without-http_map_module
    –without-http_referer_module
    –without-http_rewrite_module
    –without-http_proxy_module
    –without-http_fastcgi_module
    –without-http_memcached_module
    –without-http_limit_zone_module
    –without-http_limit_req_module
    –without-http_empty_gif_module
    –without-http_browser_module
    –without-http_upstream_ip_hash_module

  2. Do I see that right when disabling PCRE I need to set
    “–without-http_rewrite_module” (assuming I have HTTP enabled) as well
    since the rewrite module is using PCRE?

  3. Do I see that right that when I want to use the FastCGI module inside
    nginx then I need as well to set “–with-http_realip_module”?

  4. Do I see that right that if I want to use IMAP4/POP3/SMTP proxy
    support then I need to set “–with-mail” and that I can disable any of
    the 3 by using either “–without-mail_pop3_module” and/or
    “–without-mail_imap_module” and/or “–without-mail_smtp_module”?

  5. If I would like to use pure IMAP4/POP3/SMTP proxy support, do I then
    need to enable any of the --with-http_xxx options in order to have
    IMAP4/POP3/SMTP proxy support or can I disable it completely (aka:
    “–without-http”)?

  6. How does disabling HTTP cache (–without-http-cache) affect any other
    HTTP related module?

// SteveB

On Tue, Oct 13, 2009 at 10:25:21PM +0200, Steve wrote:

–without-http_auth_basic_module
–without-http_empty_gif_module
–without-http_browser_module
–without-http_upstream_ip_hash_module

The “–without-http” option disables HTTP functionality and all HTTP
modules as well.

  1. Do I see that right when disabling PCRE I need to set “–without-http_rewrite_module” (assuming I have HTTP enabled) as well since the rewrite module is using PCRE?

Yes. However, if PCRE is installed on system, then nginx may find and
use it.
You may disable it using
–without-pcre

Note, that in this case you will be unable to use regexes in locations,
etc.

  1. Do I see that right that when I want to use the FastCGI module inside nginx then I need as well to set “–with-http_realip_module”?

No. The ngx_http_realip_module is usually required if nginx is installed
behind some proxy.

  1. Do I see that right that if I want to use IMAP4/POP3/SMTP proxy support then I need to set “–with-mail” and that I can disable any of the 3 by using either “–without-mail_pop3_module” and/or “–without-mail_imap_module” and/or “–without-mail_smtp_module”?

Yes.

  1. If I would like to use pure IMAP4/POP3/SMTP proxy support, do I then need to enable any of the --with-http_xxx options in order to have IMAP4/POP3/SMTP proxy support or can I disable it completely (aka: “–without-http”)?

You need just “–without-http”.

  1. How does disabling HTTP cache (–without-http-cache) affect any other HTTP related module?

You will not be able to cache proxy and FastCGI responses. That is all.

2009/10/14 Igor S. [email protected]:

  1. How does disabling HTTP cache (–without-http-cache) affect any other HTTP related module?

You will not be able to cache proxy and FastCGI responses. That is all.
What’re the differences between HTTP cache (the --without-http-cache
option of configure) and the 3rd party module named ‘ncache’ ?

On Wed, Oct 14, 2009 at 10:38:37PM +0800, 任晓磊 wrote:

2009/10/14 Igor S. [email protected]:

  1. How does disabling HTTP cache (–without-http-cache) affect any other HTTP related module?

You will not be able to cache proxy and FastCGI responses. That is all.
What’re the differences between HTTP cache (the --without-http-cache
option of configure) and the 3rd party module named ‘ncache’ ?

I do not know ncache functionality, but can say about http cache:

*) it allows to cache proxied and FastCGI responses with header;
*) the cached responses may depend on Cookies, IPs, etc.;
*) caches are special directory hierarchies, you may use several caches
in
a server;
*) cache manager process deletes inactive cache entries and manages
cache size.