ImageMaxRewritesAtOnce: cannot be set at this scope

226 views
Skip to first unread message

Carlos Mendes

unread,
Feb 5, 2016, 6:30:58 PM2/5/16
to ngx-pagespeed-discuss
Hi,

I want to change the ImageMaxRewritesAtOnce directive but after changing my pagespeed.conf file I get the following message: 

nginx: [emerg] "pagespeed" directive "ImageMaxRewritesAtOnce" cannot be set at this scope. in .../theinnovationturn.com/conf/nginx/pagespeed.conf:1

Any ideas?

Thanks in advance

Otto van der Schaaf

unread,
Feb 5, 2016, 6:46:11 PM2/5/16
to ngx-pagesp...@googlegroups.com
I think you need to specificy "ImageMaxRewritesAtOnce" inside a http{} block.

Otto




--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.
Visit this group at https://groups.google.com/group/ngx-pagespeed-discuss.
For more options, visit https://groups.google.com/d/optout.

Amin Sabet

unread,
Dec 5, 2016, 7:14:23 PM12/5/16
to ngx-pagespeed-discuss
Can you please explain?  I have the same problem as the OP and don't know how to do what you are suggesting.


On Friday, February 5, 2016 at 6:46:11 PM UTC-5, Otto van der Schaaf wrote:
I think you need to specificy "ImageMaxRewritesAtOnce" inside a http{} block.

Otto



On Sat, Feb 6, 2016 at 12:30 AM, Carlos Mendes <carlos.a...@gmail.com> wrote:
Hi,

I want to change the ImageMaxRewritesAtOnce directive but after changing my pagespeed.conf file I get the following message: 

nginx: [emerg] "pagespeed" directive "ImageMaxRewritesAtOnce" cannot be set at this scope. in .../theinnovationturn.com/conf/nginx/pagespeed.conf:1

Any ideas?

Thanks in advance

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsub...@googlegroups.com.

Amin Sabet

unread,
Dec 5, 2016, 7:17:05 PM12/5/16
to ngx-pagespeed-discuss
Oops, nevermind, I figured it out!

Afzal Mohammed

unread,
Jan 16, 2017, 8:30:05 AM1/16/17
to ngx-pagespeed-discuss
I am facing same issue here. Can you please explain, how you figured it out ? I am using Nginx 1.10.0 with pagespeed 1.11.33.2-beta

Joshua Marantz

unread,
Jan 16, 2017, 8:42:26 AM1/16/17
to ngx-pagesp...@googlegroups.com
Make sure you specify this config directive in an nginx.conf http block, rather than a server block.

Also, our Beta channel is now on version 1.12.34.1-0.  Our stable channel is on 1.11.33.5-0.  I think you probably want to be on the latest beta or latest stable, as there were issues with MaxRewritesAtOnce in one of the older revisions, that should be resolve in both the latest beta and stable releases.

-Josh

On Mon, Jan 16, 2017 at 8:30 AM, Afzal Mohammed <afza...@gmail.com> wrote:
I am facing same issue here. Can you please explain, how you figured it out ? I am using Nginx 1.10.0 with pagespeed 1.11.33.2-beta


On Tuesday, December 6, 2016 at 5:47:05 AM UTC+5:30, Amin Sabet wrote:
Oops, nevermind, I figured it out!

On Monday, December 5, 2016 at 7:14:23 PM UTC-5, Amin Sabet wrote:
Can you please explain?  I have the same problem as the OP and don't know how to do what you are suggesting.


On Friday, February 5, 2016 at 6:46:11 PM UTC-5, Otto van der Schaaf wrote:
I think you need to specificy "ImageMaxRewritesAtOnce" inside a http{} block.

Otto



On Sat, Feb 6, 2016 at 12:30 AM, Carlos Mendes <carlos.a...@gmail.com> wrote:
Hi,

I want to change the ImageMaxRewritesAtOnce directive but after changing my pagespeed.conf file I get the following message: 

nginx: [emerg] "pagespeed" directive "ImageMaxRewritesAtOnce" cannot be set at this scope. in .../theinnovationturn.com/conf/nginx/pagespeed.conf:1

Any ideas?

Thanks in advance

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsubscri...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages