• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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