PDA

View Full Version : absolutly IMPORTANT! - mod_pagespeed



wowglider.de
25-10-11, 23:56
Hello,i installed some days ago a apache plugin called mod_pagespeed (its from google). It increased the page speed more then 20% (******) [at the beginning more server load, but who cares?] for my vistors.Mod pagespeed does many things like: combine css, javascript, cache lower quality pictures and much much much more... see here: Web Performance Best Practices (http://code.google.com/speed/page-speed/docs/rules_intro.html)I have many webpages, alot of wordpresses and also some vbulletins, now ive found a problem with pagespeed + vbet:My Apache error.logs are full of:
[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @5883] vbulletin_md5.js,qv=387:0: Resource based on http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/vbulletin_md5.js?v=387 but cannot find the original[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @5883] Fetch failed for http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/vbulletin_md5.js,qv=387.pagespeed.ce.UZfm30t6Ms.js, status=0[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @6321] yahoo-dom-event.js,qv=387:0: Resource based on http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/yui/yahoo-dom-event/yahoo-dom-event.js?v=387 but cannot find the original[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @6321] Fetch failed for http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/yui/yahoo-dom-event/yahoo-dom-event.js,qv=387.pagespeed.jm.YoTE_oKCXz.js, status=0[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @6624] connection-min.js,qv=387:0: Resource based on http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/yui/connection/connection-min.js?v=387 but cannot find the original[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @6624] Fetch failed for http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/yui/connection/connection-min.js,qv=387.pagespeed.jm.VTKQG1P_9x.js, status=0[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @6324] vbulletin_md5.js,qv=387:0: Resource based on http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/vbulletin_md5.js?v=387 but cannot find the original[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @6324] Fetch failed for http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/vbulletin_md5.js,qv=387.pagespeed.ce.UZfm30t6Ms.js, status=0[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @9505] vbulletin_global.js,qv=387:0: Resource based on http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/vbulletin_global.js?v=387 but cannot find the original[Tue Oct 25 21:40:55 2011] [error] [mod_pagespeed 0.9.18.7-900 @9505] Fetch failed for http://wow.glider-forum.de/fun-spa%C3%9F-und-andere-kuriosit%C3%A4ten/clientscript/vbulletin_global.js,qv=387.pagespeed.jm.GLdshc8iv9.js, status=0[Tue Oct 25 21:42:33 2011] [error] [mod_pagespeed 0.9.18.7-900 @9509] sortdesc.gif:0: Resource based on http://wow.glider-forum.de/zh-TW/j%C3%A4ger-107/RaidArena/buttons/sortdesc.gif but cannot find the original[Tue Oct 25 21:42:33 2011] [error] [mod_pagespeed 0.9.18.7-900 @9509] Fetch failed for http://wow.glider-forum.de/zh-TW/j\xc3\xa4ger-107/RaidArena/buttons/sortdesc.gif.pagespeed.ce.7SgKDqPMOP.gif, status=0[Tue Oct 25 21:43:00 2011] [error] [mod_pagespeed 0.9.18.7-900 @6628] /var/mod_pagespeed/cache/0f18pG3pFsOAAkiNvOyE.lock:0: failed to stat (code=2 No such file or directory)[Tue Oct 25 21:43:10 2011] [error] [mod_pagespeed 0.9.18.7-900 @9509] /var/mod_pagespeed/cache/CXcEg2e6uTGVSCq6XTx8.lock:0: failed to stat (code=2 No such file or directory)[Tue Oct 25 21:43:15 2011] [error] [mod_pagespeed 0.9.18.7-900 @9505] /var/mod_pagespeed/cache/PEUhcbWOxV_ZQF7NG6b4.lock:0: failed to stat (code=2 No such file or directory)[Tue Oct 25 21:43:16 2011] [error] [mod_pagespeed 0.9.18.7-900 @5883] /var/mod_pagespeed/cache/k_cBZlR7jC77PYG0F4vy.lock:0: failed to stat (code=2 No such file or directory)[Tue Oct 25 21:43:17 2011] [error] [mod_pagespeed 0.9.18.7-900 @9505] /var/mod_pagespeed/cache/PEUhcbWOxV_ZQF7NG6b4.lock:0: failed to stat (code=2 No such file or directory)[Tue Oct 25 21:43:24 2011] [error] [mod_pagespeed 0.9.18.7-900 @9404] /var/mod_pagespeed/cache/k_cBZlR7jC77PYG0F4vy.lock:0: failed to stat (code=2 No such file or directory)[Tue Oct 25 21:43:26 2011] [error] [mod_pagespeed 0.9.18.7-900 @6321] /var/mod_pagespeed/cache/CXcEg2e6uTGVSCq6XTx8.lock:0: failed to stat (code=2 No such file or directory)[Tue Oct 25 21:43:26 2011] [error] [mod_pagespeed 0.9.18.7-900 @6321] /var/mod_pagespeed/cache/0aR3kBki6wxlS__HeAaY.lock:0: failed to stat (code=2 No such file or directory)[Tue Oct 25 21:43:29 2011] [error] [mod_pagespeed 0.9.18.7-900 @9404] /var/mod_pagespeed/cache/DomQjD6ivJHHG5tYzppQ.lock:0: failed to stat (code=2 No such file or directory)[Tue Oct 25 21:43:31 2011] [error] [mod_pagespeed 0.9.18.7-900 @9505] /var/mod_pagespeed/cache/0f18pG3pFsOAAkiNvOyE.lock:0: failed to stat (code=2 No such file or directory)I think the problem is i said the mod page speed: "if u want to cache an item from WoW Forum | WoW FairPlay Bot Forum (http://wow.glider-forum.de/) go to /path/to/glider-forum.de/".This works fine for normal vbulletin BUT, when a vistor travels to WoW Forum | WoW Forum Bot fairplay (http://wow.glider-forum.de/en/) he is looking in /path/to/glider-forum.de/en/, but this wont work... i have NO idea to fix this, maybe you?This WOULD REALLY help ALOT of People!

wowglider.de
25-10-11, 23:59
your site breaks all formating i did...

r.dziadusz
26-10-11, 13:35
Hi
The second page you've gave me it's working corectly - translation are made, nothing is broken
I don't know if the mod itself don't need integration with vBET, i will ivestigate it

wowglider.de
26-10-11, 14:01
I DONT say something is broken.


The only thing wich is broken is this site here, but that doesnt matter!

If your support mod pagespeed it would give u alot of customers because it increases the webspeed of all web pages without any work to do!

r.dziadusz
26-10-11, 14:39
Yes i understood what you'd said I just check out if your page looks correctly:)
Please be patient, I have to check it (integration) very carefully

vBET
26-10-11, 19:28
Hi.

About formatting which was broken on this page - please describe what is wrong and we will check it.

About mod_pagespeed - I checked the logs you gave and I didn't find any wrong path to /en/ directory. Are you sure that this is the cause of issue? Are you sure that this is the cause? Can you provide one log which clearly shows it? From logs which you show I see that the issue is for URLs without language code. I also checked HTML source for page in English - URLs to CSS are relative and there is base used so requests send to your server for CSS files are without language code.

Please check do you have set appropriate rights for directory where the cache is written. Please check do you have still free space on your hard disc.
Finally if you are sure that the issue is with translated pages then please check your mod_pagespeed configuration. Please check does the configuration allows to set something about internally redirected URLs (does it takes URL before .htaccess took place or after). Try to find out what server variable is used by mod_pagespeed to determine requested URL. Maybe this will allow us to find our something. Here is something about the mod and .htaccess: mod_pagespeed Installation and Configuration (http://code.google.com/speed/page-speed/docs/install.html)
Documentation for the mod is not too small, there is lot of configuration even for domains mapping. Here you will find more about it: Using mod_pagespeed (http://code.google.com/speed/page-speed/docs/using_mod.html)
Also please ask Google help - we think that it is just configuration issue.

At this very moment in logs I do not see how vBET influence the mod. If I miss something please point me it exactly. Even if the issue is with translated URLs, the mod should be smart enough to recognize base form HTML and to respect .htaccess redirections - so again please ask also Google and check the documentation. If you will find nothing we will check it again - still please provide logs which shows that the issue is with language codes included in URLs.

wowglider.de
26-10-11, 19:47
What you maybe missed is that:

The en "directory" is just because of your mod, it does not exist on my webserver. Mod Pagespeed want to look at: /path/to/forum/en/images but this will not work, because there is no directory /en/ on the webserver.

When you surf to forum.de/en/ vbet & mod rewrite does a rewrite and it will work, but this wont work if youre on the server itself. I now advised vbulletin to do the following:
look for | rewrite to
/clientscript/ | http://wow.glider-forum.de/clientscript/
/customavatars/ | http://wow.glider-forum.de/customavatars/
/images/ | http://wow.glider-forum.de/images/

I reduced alot of errors with this rewrite now mod page speed dont want to look at /path/to/forum/en/images and use the correct path /path/to/forum/images but i think this is not the best option!? Make your mod use absolut [and make it dont use e.g. /en/] urls in css and pictures would help all problems.



About formatting which was broken on this page - please describe what is wrong and we will check it.

I wrote the first post, and then edited it, after i edited it, all formatting was lost - never seen this before. (like someone removed all < b r / > tags...)

vBET
28-10-11, 21:15
Hi. Sorry for waiting time - I was in trip yesterday.

I didn't missed that /en directory doesn't exist in your forum and it is only virtual - it exists in URL and it is redirected internally by .htaccess. I know that well. What I wrote is that I do not see in the logs you gave any path to directory including /en/ and you are writing that this is the cause. The logs you gave says nothing about any path with /en/ So why do you think that the mod is trying to get to /path/to/forum/en/images - where do you see this? This is what I miss. I do not see it in logs. The logs are about something else. Not about not existing path with /en/ Please provide logs which includes information shat such path was not found. At this moment I'm confused and I'm not sure that you gave wrong logs so we do not understand each other or the issue is not related to /en/ directory at all.

You wrote that it would hello if vBET will not add /en/ into URLs for CSS and pictures - please give us URL to page where in HTML source we will find links to CSS or pictures with /en/ - we will check it.
About absolute paths - vBET do not change path style. If original path is absolute then enhanced path (the one with language code) will be absolute. If original path is relative then output path is relative. So if you want your paths to be absolute, then please just make sure that on your original (not translated page) are used absolute paths.

About broken formatting - I just used the procedure which you described and I couldn't reproduce it. Are you able to reproduce it here again?

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages thanks to vBET Translator 4.10.1