Dear peoples
i change from apache cgi & fast cgi to nginx fpm.
i read much and do my directives, but i think i have a lot that is perhaps not needed or missing.
The other thing is i want to create a cdn with 2 subdomain.
Loading static files and cookieless works but gtmetrix says there is no cdn. and please come not use cloudflare I do not want that
Can anyone show on my directives and helps me a bit ?
This settings are all per domain not server incl php. Plesk version is up to date (17.8.11 update 21) php 7.2.10
CMS running Joomla 3.8.12 but it would be cool if it ran under wordpress too.
thanks in advance.
p.s. can't post the full code so this is part 1:
php config Additional configuration directives :
Main Domain:
MIME types: Default
Handlers: Default
Deny access to the site: Default
Index files: Default
Expires: custom value 14 Days ans set the chop response with Expires headers for static files only
Additional headers: Default
Set chop to: Restrict the ability to follow symbolic links
Additional Apache directives HTTP:
Here I am not sure if Additional Apache directives is right and if it is really meaningful ?
i change from apache cgi & fast cgi to nginx fpm.
i read much and do my directives, but i think i have a lot that is perhaps not needed or missing.
The other thing is i want to create a cdn with 2 subdomain.
Loading static files and cookieless works but gtmetrix says there is no cdn. and please come not use cloudflare I do not want that
Can anyone show on my directives and helps me a bit ?
This settings are all per domain not server incl php. Plesk version is up to date (17.8.11 update 21) php 7.2.10
CMS running Joomla 3.8.12 but it would be cool if it ran under wordpress too.
thanks in advance.
p.s. can't post the full code so this is part 1:
php config Additional configuration directives :
Code:
output_buffering = Off
realpath_cache_size = 1024k
upload_tmp_dir = /tmp
opcache.enable=1
session_cache_limiter(''); >
Main Domain:
MIME types: Default
Handlers: Default
Deny access to the site: Default
Index files: Default
Expires: custom value 14 Days ans set the chop response with Expires headers for static files only
Additional headers: Default
Set chop to: Restrict the ability to follow symbolic links
Additional Apache directives HTTP:
Here I am not sure if Additional Apache directives is right and if it is really meaningful ?
Code:
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
FileETag None
ExpiresDefault "access plus 1 week"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/html "access plus 1 days"
ExpiresByType application/x-compressed "access plus 1 week"
ExpiresByType application/x-gzip "access plus 1 week"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType text/css "now plus 1 month"
ExpiresByType image/ico "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
</IfModule>
## EXPIRES CACHING ##
Last edited: