Dukemaster
Regular Pleskian
Hi @ all
today I made the further configuration of ngx_pagespeed which is running successfully since a few weeks.
Today changed the configured to with Redis for Shared Memory Metadata Cache.
The directory /var/cache/pagespeed/ was successful created after applying
in /etc/nginx/nginx.conf. But it is empty. (owner is root, that is a little suspect for me but could be okay, because redis is installed by root, only pagespeed related directories have nginx as owner).
And I don't know to which domain I have to change the following configuration part relating to the part above and where to place it. (additional nginx, or nginx.conf, vhost.conf) and "What do they mean with "alt".example.com
In the pagespeed console I saw the following error for each domain under "Show metadatacache" (+URL):
and in the message history every few minutes the following red errors:
This means a kind of /temp/ directory could not be created because of permissions.
Would be fine if somebody could help me solving these problems, mainly the last error message.
I think they belong all to the same configuration problem.
Perhaps master @UFHH01 could help, because I followed his great tutorial installing and compiling nginx with ngx_pagespeed and brotli.
Lots of greets and a happy weekend.
today I made the further configuration of ngx_pagespeed which is running successfully since a few weeks.
Today changed the configured to with Redis for Shared Memory Metadata Cache.
The directory /var/cache/pagespeed/ was successful created after applying
Code:
pagespeed CreateSharedMemoryMetadataCache "/var/cache/pagespeed/" 51200;
And I don't know to which domain I have to change the following configuration part relating to the part above and where to place it. (additional nginx, or nginx.conf, vhost.conf) and "What do they mean with "alt".example.com
Code:
server {
listen 80;
server_name www.example.com;
pagespeed FileCachePath "/var/cache/pagespeed/";
}
server {
listen 80;
server_name alt.example.com;
pagespeed FileCachePath "/var/cache/pagespeed/";
}
In the pagespeed console I saw the following error for each domain under "Show metadatacache" (+URL):
Code:
Metadata cache key:rname/aj_b_kw9djfggl1RU1OJhvl/https://www.domain.com/@@_
cache_ok:false
can_revalidate:false
partitions:
and in the message history every few minutes the following red errors:
Code:
Failed to make directory /var/cache/pagespeed/shm_metadata_cache: Permission denied
[Sat, 16 Sep 2017 22:00:21 GMT] [Error] [19097] Could not create directories for file /var/cache/pagespeed/shm_metadata_cache/snapshot/,2Fvar/cache/pagespeed/,2Fmetadata_cache/1/64/4452/128/119,.temp
[Sat, 16 Sep 2017 22:00:21 GMT] [Error] [19097] [/var/cache/pagespeed/shm_metadata_cache/snapshot/,2Fvar/cache/pagespeed/,2Fmetadata_cache/1/64/4452/128/119,.templV51yC:0] opening temp file: No such file or directory
[
This means a kind of /temp/ directory could not be created because of permissions.
Would be fine if somebody could help me solving these problems, mainly the last error message.
I think they belong all to the same configuration problem.
Perhaps master @UFHH01 could help, because I followed his great tutorial installing and compiling nginx with ngx_pagespeed and brotli.
Lots of greets and a happy weekend.
Last edited: