nginx configutation
-
Hi!
I’m wondering if someone was able to make this great plugin working with nginx. I’ve try rewriting the rewrite rule written for apache configuration:
RewriteRule ^(.*)wp-content/gallery/((.*)\.(jpe?g|gif|png))$ /$1wp-content/plugins/wp-image-protect/php/wpipp-image-manager.php?src=wp-content/gallery/$2 [QSA,L]
RewriteRule ^(.*)wp-content/uploads/((.*)\.(jpe?g|gif|png))$ /$1wp-content/plugins/wp-image-protect/php/wpipp-image-manager.php?src=wp-content/uploads/$2 [QSA,L]
In this:
rewrite ^/(.*)wp-content/gallery/((.*)\.(jpe?g|gif|png))$ /$1wp-content/plugins/wp-image-protect/php/wpipp-image-manager.php?src=wp-content/gallery/$2 break;
rewrite ^/(.*)wp-content/uploads/((.*)\.(jpe?g|gif|png))$ /$1wp-content/plugins/wp-image-protect/php/wpipp-image-manager.php?src=wp-content/uploads/$2 break;
But I had no success… Images are not displayed anymore. Thanks!
- The topic ‘nginx configutation’ is closed to new replies.