• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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