Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

StaticAssetPrefix not working #705

Closed
nikolay opened this issue May 19, 2014 · 7 comments
Closed

StaticAssetPrefix not working #705

nikolay opened this issue May 19, 2014 · 7 comments

Comments

@nikolay
Copy link
Contributor

nikolay commented May 19, 2014

The documentation here https://developers.google.com/speed/pagespeed/module/configuration says that StaticAssetPrefix is now available and that the default path has changed to /pagespeed_static, but PageSpeed is giving an error that StaticAssetPrefix is not recognized and also the Nginx configuration still tells people to configure using /ngx_pagespeed_static as location.

@jeffkaufman
Copy link
Contributor

Could you paste the error you're getting with 1.8?

@nikolay
Copy link
Contributor Author

nikolay commented May 19, 2014

@jeffkaufman Some of the custom paths didn't work in the server block, so, I moved to the http, but my setting of pagespeed StaticAssetPrefix "/static/"; is still giving me: 2014/05/19 19:32:54 [emerg] 5484#0: "pagespeed" directive "StaticAssetPrefix" not recognized or too many arguments in /etc/nginx/nginx.conf:29.

@nikolay
Copy link
Contributor Author

nikolay commented May 20, 2014

@jeffkaufman So, even if I decide not use this feature as it's not been implemented in 1.8, which path should I use in the location - /pagespeed_static or the old /ngx_pagespeed_static? You understand that there are two issues here, not just one.

@jeffkaufman
Copy link
Contributor

You're right, there's a big problem with StaticAssetPrefix in ngx_pagespeed. The option isn't going to be settable at all until we fix it, which means that the prefix will be /pagespeed_static/ and can't be configured.

I should be able to get a pull request out to fix this today, and we'll include it in the point release we're putting together.

@jeffkaufman jeffkaufman changed the title StaticAssetPrefix Not Working; Misleading and Conflicting Documentation StaticAssetPrefix not working May 20, 2014
@nikolay
Copy link
Contributor Author

nikolay commented May 20, 2014

@jeffkaufman Thanks.

@jeffkaufman
Copy link
Contributor

This will be in 1.8.32.3

jeffkaufman added a commit that referenced this issue May 27, 2014
Backporting this to master for 1.8.31.3.

Fixes #705.
@nikolay
Copy link
Contributor Author

nikolay commented May 27, 2014

@jeffkaufman Nice! Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants