admin管理员组文章数量:1336304
I set in Apache the mod_cache_disk module, but I'm getting 404 page not found error on every page and posts. I'm using WordPress Multisite on Debian 10 server with PHP FPM 7.4.
I set this below in apache2.conf file:
<IfModule mod_cache.c>
CacheQuickHandler off
CacheIgnoreNoLastMod On
CacheDefaultExpire 7200
CacheIgnoreCacheControl On
CacheLastModifiedFactor 0.5
CacheIgnoreHeaders Set-Cookie Cookie
CacheHeader on
CacheLock on
CacheDisable /wp-admin
CacheDisable /wp-login.php
CacheDisable /wp-cron.php
SetOutputFilter CACHE
AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/rss+xml text/xml image/svg+xml
<IfModule mod_cache_disk.c>
CacheRoot /mnt/cache
CacheEnable disk /
CacheDirLevels 2
CacheDirLength 1
CacheMaxFileSize 100000000
</IfModule>
</IfModule>
Everything is working fine if I delete these lines from the configuration file.
How can I fix this issue? I would like to use mod_cache_disk with WordPress, it makes it at least 35x faster.
I set in Apache the mod_cache_disk module, but I'm getting 404 page not found error on every page and posts. I'm using WordPress Multisite on Debian 10 server with PHP FPM 7.4.
I set this below in apache2.conf file:
<IfModule mod_cache.c>
CacheQuickHandler off
CacheIgnoreNoLastMod On
CacheDefaultExpire 7200
CacheIgnoreCacheControl On
CacheLastModifiedFactor 0.5
CacheIgnoreHeaders Set-Cookie Cookie
CacheHeader on
CacheLock on
CacheDisable /wp-admin
CacheDisable /wp-login.php
CacheDisable /wp-cron.php
SetOutputFilter CACHE
AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/rss+xml text/xml image/svg+xml
<IfModule mod_cache_disk.c>
CacheRoot /mnt/cache
CacheEnable disk /
CacheDirLevels 2
CacheDirLength 1
CacheMaxFileSize 100000000
</IfModule>
</IfModule>
Everything is working fine if I delete these lines from the configuration file.
How can I fix this issue? I would like to use mod_cache_disk with WordPress, it makes it at least 35x faster.
Share Improve this question asked May 31, 2020 at 11:39 FerimanFeriman 2892 silver badges9 bronze badges1 Answer
Reset to default 1I solved this issue by replacing
RewriteRule . /index.php [L]
with
RewriteRule ^(.*)$ /index.php/$1 [L]
in .htaccess file.
本文标签: 404 errorPage not found if modcachedisk is active
版权声明:本文标题:404 error - Page not found if mod_cache_disk is active 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742386237a2465090.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论