On 2018-06-28, Özgür Kazancci <ozgurkazan...@gmail.com> wrote:
> I need to use "add_before_body" and "add_after_body" directives for Nginx
> for my personal webpage, by setting them in nginx.conf. However, it seems
> that my Nginx installation (from OpenBSD packages) doesn't support these
> directives:
>
> a 'cat' to log file reports;
>
> "2018/06/28 09:14:09 [emerg] 52287#0: unknown directive "add_before_body"
> in /etc/nginx/nginx.conf:162"
>
> These directives probably belong to the module: ngx_http_addition_module. So,
> is there any way to dynamically activate that module without manually
> fetching and compiling Nginx on the system?
>
> I don't want to build Nginx from source. I cannot do that - it's a
> production server.

The module selection is part of the nginx build system - you can't do
this without building nginx.


Reply via email to