• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Question PLESK "Nginx only" configuration (cache control, expires, static content)

Dukemaster

Regular Pleskian
Hi at all,
would be nice if we could make a discussion about the PLESK provided option "nginx without Apache" and help each other to improve ourselves in configuration.

My Plesk domain webserver settings are NGINX ONLY, static files and PHP 7.1.8 FPM also only nginx. (Pagespeed is also installed for Nginx from source, but it's absolutely unimportant for this thread)

After reading and testing uncountable documents and advices for Nginx and Plesk I came to the conclusion that all current documentation refers to the standard configuration Apache with nginx as frontend (proxy server). Or, if nginx alone, then it's without PLESK.
Is there anybody out who has experiences with NGINX as standalone with PLESK serving PHP 7.1 FPM and also static content?
First I posted a similar thread in Off topics, BUT in this case it is absolutely Plesk-related. Perhaps @UFHH01, @IgorG or @TimReeves have some inspiration, so if they want.

How and where has configuration to be placed. E.g. settings for Cache control max. age?
By tests everything was without success, not in /etc/nginx/nginx.conf server (http) nor in additional nginx settings under domain settings. Perhaps creating a custom php file?

Lots of Greets (Welcome back UFHH01, forum missed you) ;)
 
Last edited:
How and where has configuration to be placed. E.g. settings for Cache control max. age?
By tests everything was without success, not in /etc/nginx/nginx.conf server (http) nor in additional nginx settings under domain settings. Perhaps creating a custom php file?
Why you can't define it in Additional nginx directives? Like it is described in this KB article, for instance: [How to] Enable cache expiration in nginx
 
Hi at all,
would be nice if we could make a discussion about the PLESK provided option "nginx without Apache" and help each other to improve ourselves in configuration.

My Plesk domain webserver settings are NGINX ONLY, static files and PHP 7.1.8 FPM also only nginx. (Pagespeed is also installed for Nginx from source, but it's absolutely unimportant for this thread)

After reading and testing uncountable documents and advices for Nginx and Plesk I came to the conclusion that all current documentation refers to the standard configuration Apache with nginx as frontend (proxy server). Or, if nginx alone, then it's without PLESK.
Is there anybody out who has experiences with NGINX as standalone with PLESK serving PHP 7.1 FPM and also static content?
First I posted a similar thread in Off topics, BUT in this case it is absolutely Plesk-related. Perhaps @UFHH01, @IgorG or @TimReeves have some inspiration, so if they want.

How and where has configuration to be placed. E.g. settings for Cache control max. age?
By tests everything was without success, not in /etc/nginx/nginx.conf server (http) nor in additional nginx settings under domain settings. Perhaps creating a custom php file?

Lots of Greets (Welcome back UFHH01, forum missed you) ;)

Here the additional directives I use :
Code:
# Cache static files
location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf|webp)$ {
  add_header "Access-Control-Allow-Origin" "*";
  access_log off;
  log_not_found off;
  expires 30d;
}

But you have to make sure expires directive isn't removed by ngx_pagespeed module
 
Back
Top