• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue Service plan server configuration is not applied

brother4

Basic Pleskian
Hello,
I have added the following ngnix configurations to a service plan and applied them. The affected subscription is in sync mode and not locked. What could be reasons that it still only works if I store it directly in the domain settings?
Code:
gzip_proxied any;

location ~* \.(js|jpg|jpeg|gif|png|css|tgz|gz|rar|zip|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg|webp|webm)$ {
etag on;
if_modified_since exact;
add_header Pragma "public";
add_header Cache-Control "max-age=31536000, public";
}

I tried also a reboot and
Code:
plesk repair all -y

with 0 errors and warnings.

I verified it with:
Code:
curl -I https://www.example.com/image.svg

Only with the service plan and empty domain nginx config textarea nothing changes. Insert it in domain config it works immediately. Even switching to the same service plan did not help.

Thank you!
 
Last edited:
Back
Top