PhastPress and nginx
-
Hi there,
First of all, thank you for this fantastic plugin!
I recently migrated my WordPress site from an Apache server to a new server running Nginx. Everything was working perfectly, including PhastPress, until I manually deleted the/wp-content/cache/phastpress.*folders.
Since then, reactivating PhastPress does not recreate thephastpress.*folders in the/wp-content/cache/directory. It still modifies the image URLs as expected, but the image URL returns a 404 error.
Could this be related to a permission issue with Nginx? Is there something specific I need to configure to allow PhastPress to recreate the cache directories under Nginx?
Also, I have tried to recreate this.htaccesslogic…RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^wp-content/.*[^/].(jpe?g|gif|png)$ wp-content/plugins/phastpress/phast.php [L,NC,E=PHAST_SERVICE:images]…in Nginx, but it did not work:
location ~* ^/wp-content/.*\.(jpe?g|png|gif)$ {
root /home/kaffeeart.eu/public_html;
if (-f $request_filename) {
set $phast_service "images";
rewrite ^/wp-content/.*\.(jpe?g|png|gif)$ /wp-content/plugins/phastpress/phast.php last;
}
}Thanks in advance for your help!
The topic ‘PhastPress and nginx’ is closed to new replies.