If you are using a ISPmanager server, please follow the steps below for the Xilifox Image Optimizer plugin to work properly.
-
步 1. #
Log in to your ISPmanager dashboard and go to the “File manager” tab (using the menu on the left).
-
步 2. #
Go to the
/etc
directory and then to the/nginx
目录. -
步 3. #
Edit the following file:
nginx.conf.isp
-
步 4. #
Find a line like this (the content may vary depending on your configuration), which contains image formats (.jpg, JPEG, PNG, etc.):
location ~* ^.+.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
-
步 5. #
Remove the following file formats from this line:
- .jpg
- JPEG
- PNG
- gif
- 网页
This is an example of the line before the changes:
location ~* ^.+.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
This is an example of the line after the changes:
location ~* ^.+.(svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
-
步 6. #
Save the changes to the nginx.conf.isp file.
-
步 7. #
In your ISPmanager dashboard, go to the “Services” tab (available in the Management Tools menu or in the Monitoring menu).
-
步 8. #
Find the Nginx service in the list and select it.
-
步 9. #
Use the Restart button to restart the Nginx service.
-
步 10. #
就这样! The error on the plugin settings page should disappear.