crowell / modpagespeed_tmp

Automatically exported from code.google.com/p/modpagespeed
Apache License 2.0
0 stars 0 forks source link

No Permission to rewrite "css/js" #596

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install mod_pagespeed(64 bit) on apache version 2.2
2.restart apache

What is the expected output? What do you see instead?
I am seeing error messages in the log due to which its unable to rewrite 
js/css etc

[Tue Dec 18 21:55:34 2012] [info] [mod_pagespeed 1.2.24.1-2300 @15128] No 
permission to rewrite 'https://mysitecdn.net/c1/v57.063/scripts/sitefooter.css'
[Tue Dec 18 21:55:34 2012] [info] [mod_pagespeed 1.2.24.1-2300 @15128] 
http://mysite.com/c1/v57.063/573291640/lists/memorizedtemplate:49: Found script 
with src 
/c1/v57.063/573291640/request/common/resourcebundle/localstring-en_US.js
[Tue Dec 18 21:55:34 2012] [info] [mod_pagespeed 1.2.24.1-2300 @15128] 
http://mysite.com/c1/v57.063/573291640/lists/memorizedtemplate:51: Found script 
with src https://mysitecdn.net/c1/v57.063/scripts/jscontext.js
[Tue Dec 18 21:55:34 2012] [info] [mod_pagespeed 1.2.24.1-2300 @15128] No 
permission to rewrite 'https://mysitecdn.net/c1/v57.063/scripts/jscontext.js'

What version of the product are you using (please check X-Mod-Pagespeed
header)?
mod-pagespeed-stable_current_x86_64.rpm:1.2.24.1-2300

On what operating system?
Linux 2.6.18-308.20.1.0.1.el5 x86_64

Which version of Apache?
Apache/2.2.3

Which MPM?

URL of broken page

Original issue reported on code.google.com by bhupa...@gmail.com on 19 Dec 2012 at 10:26

Attachments:

GoogleCodeExporter commented 9 years ago
Please try:

ModPagespeedDomain https://mysitecdn.net
ModPagespeedMapOriginDomain localhost https://mysitecdn.net

or similar.

This assumes that mysitecdn.net 'pulls' from mysite.com so that mod_pagespeed 
can decode and server optimized resources (.pagespeed. URLs) and the CDN can 
cache them.

Original comment by jmara...@google.com on 19 Dec 2012 at 11:06

GoogleCodeExporter commented 9 years ago
cool, that seemed to have addressed couple of problems that i was seeing and 
here are some more that i am seeing.....

1) As part of the compression ,rewrite's its doing, i am assuming its looking 
into these folders also?
[Wed Dec 19 18:01:59 2012] [error] [client 224.0.0.0] File does not exist: 
/blah-www/c1/v57.063
[Wed Dec 19 18:01:59 2012] [error] [client 224.0.0.0] File does not exist: 
/l/httpd-2.2.19

2)Why is there a reference to google below
 [Wed Dec 19 18:06:40 2012] [info] [mod_pagespeed 1.2.24.1-2300 @17377] No permission to rewrite 'https://www.google.com/jsapi/?key=ABQIAAAAmuRlx13GBaxOltoM76KYlBQWrm5OQxDNbzPc8BmCXnDDm0oK5RR56BmA1hW5dHnnA6h5Qygr_k-ktQ'

3) is this okay 
[Wed Dec 19 18:01:59 2012] [info] [mod_pagespeed 1.2.24.1-2300 @17377] 
https://mysitecdnn.net/c1/v57.063/scripts/gfdynamicfeedcontrol.js: Unlocking 
lock /var/mod_pagespeed/cache/snNSBxQYF7NbxBlifZgi.lock with cached=false, 
success=false

4) how do i control the logging levels, currently its set to "info" and i am 
more interested in "error"

Thanks,
Vikas

Original comment by bhupa...@gmail.com on 20 Dec 2012 at 2:24

GoogleCodeExporter commented 9 years ago
1.  I am not sure why these 'File does not exist' errors show up; they are not 
coming directly from mod_pagespeed, though they may be caused indirectly by 
mod_pagespeed's loopback request.  Do those files sound familiar to you at all?

4. (out of order I know but bear with me).   add  'loglevel error' or 'loglevel 
warning' to httpd.conf

2. Because you have 'loglevel info', mod_pagespeed is telling you why it's not 
rewriting that file.   mod_pagespeed must be rewriting HTML that is referencing 
that file.  Do you have Google Analytics on your site, or a Google +1 button or 
something?   That might explain it.  That file certainly isn't something 
mod_pagespeed would reference by default.

3. Yes that's fine.  It's just an 'info' message.  mod_pagespeed is pretty 
noisy about what it's doing when you set 'loglevel info'.

Do you feel this issue is resolved?

Original comment by jmara...@google.com on 20 Dec 2012 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by jmara...@google.com on 14 Jan 2013 at 7:36

GoogleCodeExporter commented 9 years ago
please close this issue

Original comment by bhupa...@gmail.com on 14 Jan 2013 at 7:42

GoogleCodeExporter commented 9 years ago

Original comment by jmara...@google.com on 26 Mar 2013 at 12:29