0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

how to load nginx module

Last updated at Posted at 2024-05-15

Install

nginx -V 2>&1 | tr -- - '\n' | grep _module
sudo apt install libnginx-mod-http-image-filter
ls /etc/nginx/modules-*

Load module

# nginx.conf
load_module modules/ngx_http_image_filter_module.so; 

conf

# app.conf

location /img/ {
  image_filter resize 240 360;
  image_filter rotate 180;
  image_filter_buffer 16M;
}

Ref:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?