• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Nginx Static Content

Janko1000

Regular Pleskian
Hi,

Does the Nginx WebServer serve the Static Content eg. .gif .jpg?
I have installed mod_status and find a lot "static" request in the Apache.

As a temporary solution i set in the last_nginx.conf for each Domain:

location ~* ^.+.(jpe?g|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf|avi|mp3)$ {
expires max;
root /var/www/vhosts/domain.com/httpdocs;
}

But how can i set this to the Custom Template? I can not find any Variable for root /var..........


Thanks a lot
 
You can define a desired customization for Nginx in Plesk default templates for Nginx server:

/usr/local/psa/admin/conf/templates/default/nginx.php
/usr/local/psa/admin/conf/templates/default/nginxDomainForwarding.php
/usr/local/psa/admin/conf/templates/default/nginxDomainVhost.php

However, please do not modify these files above. You should copy them into the folder below and there you can adjust the custom settings.

/usr/local/psa/admin/conf/templates/custom/
 
Back
Top