ISPCFG3.0.5RC1 refuses to add empty nginx locations in nginx directive
I'm currently implementing ngx_pagespeed with nginx and if I manually add these lines into /etc/nginx/sites-enabled/my.vhost before the last } of the server directive and restart nginx it loads just fine and works but if I add the same lines via ISPCFG3 => nginx directives the new my.vhost gets an .err appended so it seems ISPCFG3.0.5RC1 is refusing to write empty location directives?
This is where I was instructed to use those directives: https://github.com/pagespeed/ngx_pagespeed#how-to-build
This is a temporary workaround that ensures requests for pagespeed
optimized resources go to the pagespeed handler.
location ~ ".pagespeed.([a-z].)?[a-z]{2}.[^.]{10}.[^.]+" { } location ~ "^/ngx_pagespeed_static/" { } location ~ "^/ngx_pagespeed_beacon$" { }