No permission to rewrite

212 views
Skip to first unread message

Jason Carlton

unread,
Feb 22, 2022, 12:11:55 AM2/22/22
to mod-pagespeed-discuss
I installed mod_pagespeed last year and haven't paid it much attention after configuring it. But I recently noticed a TON of errors in my error_log:

[Mon Feb 21 20:17:10.086777 2022] [pagespeed:info] [pid 23376:tid 47623094380288] [mod_pagespeed 1.13.35.2-0 @23376] No permission to rewrite 'https://www.mydomain.com/whatever.js'

I'm getting this on JPGs, PNGs, CSS, JS, Adsense, Google Tag Manager... seriously, 75,712 of them in 10 minutes!

The only changes I've made to 510_pagespeed.conf are:

## loading CSS out of order, causing awkward page loads
## this didn't work
# ModPagespeedEnableFilters move_css_to_head
## so disallow entirely
ModPagespeedDisallow "*includes/styles*.css*"

## Classifieds thumbnails aren't loading properly, exclude the directory
ModPagespeedDisallow "*classifieds*thumbs/*"

## All PNGs are broken
ModPagespeedDisallow "*.png*"


That's right above </IfModule>.

It's worth mentioning that, even though I'm excluding PNG files and *includes/styles*.css*, I still see "no permission to rewrite" errors on PNGs and mydomain.com/includes/styles_uni.css?h=1604823036

I found several references to people having this same error over the years, but none of the solutions given applied to me.

Any suggestions on how I might track down the source of the problem?

Longinos

unread,
Feb 22, 2022, 3:52:56 AM2/22/22
to mod-pagespeed-discuss
Hi
Well you have disallowed all png files, all includes/stiles*.css* files (this implies all other files includen in it, like images) and all files in classiefieds*thumbs/ folder
so yes, you can have a lot of "no permision" INFO messages (no ERROR messages)
And for resources from other domains, the same... url´s from adsense or gtag are no permited to be rewrited, so you get the INFO messages.
If these messages are in the server log, try to put it to warn level to bypass info messages:
LogLevel warn
In apache config.
Reply all
Reply to author
Forward
0 new messages