Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- daemon off;
- master_process on;
- error_log logs/error.log debug;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- ssi on;
- gzip on;
- gzip_types application/javascript;
- pagespeed MessageBufferSize 1000000;
- pagespeed FileCachePath /opt/ngx_pagespeed;
- pagespeed RateLimitBackgroundFetches on;
- server {
- pagespeed on;
- location /mod_pagespeed_example {
- add_header Cache-Control public;
- add_header Vary Accept-Encoding;
- }
- location /pagespeed_console {
- allow all;
- }
- location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" ""; }
- location ~ "^/ngx_pagespeed_static/" { }
- location ~ "^/ngx_pagespeed_beacon$" { }
- location /ngx_pagespeed_statistics { allow all; }
- location /ngx_pagespeed_message { allow all; }
- pagespeed FileCacheSizeKb 10000;
- pagespeed InstallCrashHandler on;
- listen 8020;
- server_name localhost;
- add_header from-server 1;
- root html/banner;
- pagespeed on;
- location /mod_pagespeed_test {
- add_header from-location-mps-test 1;
- autoindex on;
- }
- location / {
- autoindex on;
- add_header from-root-location 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement