Hello.
I need to install the http_gzip_static_module module
FreeBSD 9.1
Nginx / 1.4.2

How to do it? I read that there is no support for modules in the form of libraries, like, for example, in apache - in nginx. It is necessary to re-compile / recompile from ports. I am new to these web servers. Help is available.

    2 answers 2

    nginx server does not support dynamically loaded extension modules. To add a module to nginx, you need to fully compile nginx from source codes with the new module turned on and statically integrated into it.

    If you are using ports, then the port variants nginx command will give you the nginx build options and the sudo port -v install nginx +gzip_static +image_filter +zip +ssl +secure_link install the http_gzip_static_module you need

    The same can be done manually - download the assembly of the source codes of nginx and the modules you need, run

    1. cd nginx-версия
    2. ./configure --prefix=путь-для-установки-nginx --add-module=путь-к-модулю1 --add-module=путь-к-модулю2
    3. make
    4. make install

      Try this one here. In theory, nginx ports should be with a gzip module.