Re: mod_pagespeed and prestashop

1,648 views
Skip to first unread message

Matt Atterbury

unread,
Nov 21, 2012, 8:59:33 AM11/21/12
to mod-pagesp...@googlegroups.com
Hi,

Could you post or email me your site name so we can have a look? I haven't heard of prestashop but i'll look into it.
How was the error displayed? In the console? As an error message over the browser window?
Which browser(s) have you tried?

Regards, m.

On Wed, Nov 21, 2012 at 5:49 AM, gden <ad...@iberden.es> wrote:
Hi,

  I tried activating mod_pagespeed in a webserver running prestashop, but had to disable it, due to an error in the paged stating "Entity 'eacute' not defined"... 

Any hints on how to overcome this issue?

Thanks in advance!


Joshua Marantz

unread,
Dec 9, 2012, 9:34:13 PM12/9/12
to mod-pagespeed-discuss
Yes you can set up mod_pagespeed in any VirtualHost.  Turn 'ModPagespeed off' in the root and turn it 'on' in any VirtualHost you like.

You can also leave it installed but turned off for your main site, and we can turn it on per-query with ?ModPagespeed=on.  See https://developers.google.com/speed/docs/mod_pagespeed/experiment

-Josh


On Sun, Dec 9, 2012 at 4:23 PM, gden <ad...@iberden.es> wrote:

Hi,

Sorry for so much time without a response... I saw the error in chrome browser. 

Any way to configure pagespeed in a different virtual host together proxypass or similar? I'd like to test without doing any harm to the production site...

Thanks again,

Jose.

Joshua Marantz

unread,
Mar 22, 2013, 9:15:13 AM3/22/13
to mod-pagespeed-discuss
I'm not sure offhand.  Are there errors in your Apache logs?  In Firebug or Chrome Dev tools?

One thing you could do is blacklist the admin panel pages.  I don't know what the URL-scheme for the Prestashop admin pages are but something like this might help:
   ModPagespeedDisallow */prestashop-admin/*



On Fri, Mar 22, 2013 at 8:59 AM, Murilo Cardoso <murilos...@gmail.com> wrote:
After enabling pagespeed on my site with Prestashop, I can not access the admin panel, apparently the site is unable to create the session.
Does anyone know help me?



Em sexta-feira, 21 de dezembro de 2012 10h20min24s UTC-2, gden escreveu:
Thank you Josh!

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

Murilo Cardoso

unread,
Mar 22, 2013, 9:22:37 AM3/22/13
to mod-pagesp...@googlegroups.com
The idea is really this!
Sorry for asking, but where I put this code?


Murilo Cardoso
Skype: muriloscardoso
Cel: (11) 981-336-940


2013/3/22 Joshua Marantz <jmar...@google.com>

--
You received this message because you are subscribed to a topic in the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mod-pagespeed-discuss/1Lq_Y1IY3w4/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to mod-pagespeed-di...@googlegroups.com.

Joshua Marantz

unread,
Mar 22, 2013, 9:26:47 AM3/22/13
to mod-pagespeed-discuss
No worries!  It goes in pagespeed.conf or an .htaccess file, depending on your host setup.  pagespeed.conf might be in in /etc/apache2/mods-available or /etc/httpd/conf.d depending on your distro.  Don't hesitate to ask more questions, and I'll also point you to our doc:


-Josh

Murilo Cardoso

unread,
Mar 22, 2013, 10:37:21 AM3/22/13
to mod-pagesp...@googlegroups.com
I tried, but as the Prestashop htaccess controls, any changes I make in the file, the site goes down.

Joshua Marantz

unread,
Mar 22, 2013, 10:43:51 AM3/22/13
to mod-pagespeed-discuss
Hmm...sorry about that...it would be safer to do this in .htaccess

<IfModule pagespeed_module>
  ModPagespeedDisallow *bad*
</IfModule>

When you say "the site goes down" can you give any more details?  Can you access the Apache log?  When you access your site via a browser, what do you see on the browser screen?

Also note that I don't really know exactly what the correct wildcard expression is to turn mod_pagespeed off for your prestashop admin site,

Murilo Cardoso

unread,
Mar 22, 2013, 11:50:49 AM3/22/13
to mod-pagesp...@googlegroups.com
I managed to solve a very basic form
I accessed WITHOUT the www as the panel opened normally
:)

Joshua Marantz

unread,
Mar 22, 2013, 1:13:36 PM3/22/13
to mod-pagespeed-discuss
Hi -- your list of enabled/disabled features seems fine to me.  I assume there's a particular reason that you decided to disable some of the features we consider 'core'.  We're always interested in the reasons.

But I don't think I can suggest a correction to your configuration until I understand what caused you to disable some of those filters.

Also, to clarify, have you set the RewriteLevel to PassThrough?  If not, you will also get the other filters we consider "core", notably rewrite_css and flatten_css_imports.

-Josh


On Fri, Mar 22, 2013 at 11:54 AM, Iwos.pl <off...@iwos.pl> wrote:
Hello.
I use mod_pagespeed and prestashop with success since half year on my e-store (iwos.pl). After a few days of testing I made the fallowing changes in .htaccess file. It works ok for me.

ModPagespeed on
ModPagespeedDisableFilters inline_images,resize_images,trim_urls,rewrite_style_attributes_with_url,recompress_images,extend_cache,convert_meta_tags, 
ModPagespeedEnableFilters remove_comments,collapse_whitespace,rewrite_images,outline_javascript,remove_quotes,make_google_analytics_async,combine_javascript,inline_css,resize_mobile_images,pedantic,

I also created .htaccess file in admin directory where I placed.
ModPagespeed off directive.

I would be gratefull if one of the experts could look through this and suggest possible correction .

Best 
Mat




W dniu środa, 21 listopada 2012 11:49:03 UTC+1 użytkownik gden napisał:
Hi,

  I tried activating mod_pagespeed in a webserver running prestashop, but had to disable it, due to an error in the paged stating "Entity 'eacute' not defined"... 

Any hints on how to overcome this issue?

Thanks in advance!

Reply all
Reply to author
Forward
0 new messages