• 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.

Expire Headers in Plesk Nginx & Apache

Yaashul

New Pleskian
I would like to use expire header for images. I know this the code for doing it.

location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 7d;
}

Now the question is where shud I put this code.

I can't edit vhost configuration of nginx coz it will remove the following code once nginx updates itself.

Please suggest me the right place to put this code.
 
I just upgraded to Pleask 11.5 and i added the expire cache thanks to the new feature.

To do so:
1. Upgrade to 11.5 if it is not yet done (Upgrade option in tools & settings)
2. click on your website
3. Click on website & domains
4. click on a domain below the 3 buttons (add new domain add new subdomain add new domain)
5. Click on web server setting and scroll down to the bottom of the page
6. Copy and paste & save

Capture d’écran 2013-06-17 à 11.11.37.png
 
Hi,

I noticed that there is one issue with this. If you enable server static files via nginx then these rules won't apply.

They key is adding the try_files directive and making sure you remove the filetypes from the static files list.

I've written a small guide on my Blog.
 
Back
Top