https://github.com/itbdw/nginx_pagespeed_dynamic_module
Compiled Nginx Pagespeed Dynamic Module Binary Files. ngx_pagespeed.so
https://github.com/itbdw/nginx_pagespeed_dynamic_module
Last synced: over 1 year ago
JSON representation
Compiled Nginx Pagespeed Dynamic Module Binary Files. ngx_pagespeed.so
- Host: GitHub
- URL: https://github.com/itbdw/nginx_pagespeed_dynamic_module
- Owner: itbdw
- License: mit
- Created: 2017-08-02T10:14:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-02T12:37:50.000Z (almost 9 years ago)
- Last Synced: 2025-01-10T17:25:29.104Z (over 1 year ago)
- Size: 6.1 MB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nginx_pagespeed_dynamic_module
Compiled Nginx Pagespeed Dynamic Module Binary Files. ngx_pagespeed.so
## What is this
Just a collection of pagespeed dynamic module builded file for nginx.
## How to use
* Copy the ngx_pagespeed.so with the right nginx version. (run `nginx -v` on your server to get nginx version)
* Load the module for your nginx.
* Enable Pagespeed
Set up sample
add code to http or server block
```
pagespeed on;
# Needs to exist and be writable by nginx. Use tmpfs for best performance.
pagespeed FileCachePath /var/ngx_pagespeed_cache;
```
add code to server block
```
# Ensure requests for pagespeed optimized resources go to the pagespeed handler
# and no extraneous headers get set.
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
add_header "" "";
}
location ~ "^/pagespeed_static/" { }
location ~ "^/ngx_pagespeed_beacon$" { }
```
## Links
[ngx_pagespeed](https://github.com/pagespeed/ngx_pagespeed)
[PageSpeed Configuration](https://modpagespeed.com/doc/configuration)