NGINX disable ngx_pagespeed on /backend

March 26, 2015 4.4k views
Nginx LEMP

I`m using Shopware and i want to disable the pagespeed plugin for my backend which is accessible trough

Now i had this location block - but it does not work, i`m getting an error in my config if i reload nginx

location /backend/ {
pagespeed off;


Reloading nginx configuration: nginx: [emerg] "pagespeed" directive is not allowed here in /etc/nginx/sites-enabled/

Does anybody has a solution ?

1 Answer

You could instead disable all Pagespeed filters in that location block.

  • I only want to disable pagespeed if i go to my backend ( )

    Why does pagespeed off; not work ?

  • Did you read the error message? Your directive isn't allowed at that location.

Have another answer? Share your knowledge.