Autoptimize and Nginx
-
Hello
After activating Autoptimize, a file .htaccess is created in the cache folder.
When using Nginx as the only webserver, the file will be ignored.
Does this mean Autopimize will be broken, and/or not be as fast, and/or not be secure with Nginx ? and if so do you have a guide for the equivilent of below for Nginx
Thanks very much
contents of …./autopimize/cache/.htaccess
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css A30672000
ExpiresByType text/javascript A30672000
ExpiresByType application/javascript A30672000
</IfModule>
<IfModule mod_headers.c>
Header append Cache-Control “public, immutable”
</IfModule>
<IfModule mod_deflate.c>
<FilesMatch “\.(js|css)$”>
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
<IfModule mod_authz_core.c>
<Files *.php>
Require all denied
</Files>
</IfModule>
<IfModule !mod_authz_core.c>
<Files *.php>
Order deny,allow
Deny from all
</Files>
</IfModule>
ErrorDocument 404 /wp-content/autoptimize_404_handler.php`
- The topic ‘Autoptimize and Nginx’ is closed to new replies.