-
Notifications
You must be signed in to change notification settings - Fork 0
Using ngx_pagespeed with Tengine
Otto van der Schaaf edited this page Oct 25, 2023
·
2 revisions
Tengine is an Nginx distribution that supports dynamically loaded modules. You can add ngx_pagespeed to an existing Tengine install without recompiling Tengine. To build ngx_pagespeed.so
for Tengine, first install dependencies and check out ngx_pagespeed following the standard build process. Then:
# This might be /usr/local/tengine, depending on your configuration.
$ cd /path/to/tengine/sbin/
$ ./dso_tool --add-module=/path/to/ngx_pagespeed
This will prepare a dynamically loadable module out of ngx_pagespeed. To check that it worked you can verify that /path/to/tengine/modules/
contains an ngx_pagespeed.so
.
You need to tell tengine to load this module. Before continuing with How to Use, add this to the top of your configuration:
dso {
load ngx_pagespeed.so;
}