I`m using Shopware and i want to disable the pagespeed plugin for my backend which is accessible trough domain.com/backend/
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;
}
error
Reloading nginx configuration: nginx: [emerg] "pagespeed" directive is not allowed here in /etc/nginx/sites-enabled/100-shopware.domain.de.vhost:83
Does anybody has a solution ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Should be in vhost.conf
#include /usr/local/nginx/conf/pagespeed.conf; pagespeed off; #include /usr/local/nginx/conf/pagespeedhandler.conf; #include /usr/local/nginx/conf/pagespeedstatslog.conf;
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.