From 19954a26731d27eacc0cc25ebff2682e1ab65f02 Mon Sep 17 00:00:00 2001 From: SCG82 Date: Thu, 23 Apr 2020 03:54:08 -0700 Subject: [PATCH] Add load_module directives to README (#102) --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 21a7add..0bbea7b 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,11 @@ Both Brotli library and nginx module are under active development. You will need to use **exactly** the same `./configure` arguments as your Nginx configuration and append `--with-compat --add-dynamic-module=/path/to/ngx_brotli` to the end, otherwise you will get a "module is not binary compatible" error on startup. You can run `nginx -V` to get the configuration arguments for your Nginx installation. -`make modules` will result in `ngx_http_brotli_filter_module.so` and `ngx_http_brotli_static_module.so` in the `objs` directory. Copy these to `/usr/lib/nginx/modules/` then add the `load_module` lines above to `nginx.conf`. +`make modules` will result in `ngx_http_brotli_filter_module.so` and `ngx_http_brotli_static_module.so` in the `objs` directory. Copy these to `/usr/lib/nginx/modules/` then add the `load_module` directives to `nginx.conf` (above the http block): +```nginx +load_module modules/ngx_http_brotli_filter_module.so; +load_module modules/ngx_http_brotli_static_module.so; +``` ### Statically compiled