Plesk for Linux can use nginx to deliver static website files while Apache handles dynamic requests. This guide enables smart static-file processing for a domain.
Enable smart static-file processing
The server must have nginx support installed and enabled. You also need permission to change the domain’s web server settings.
- Sign in to Plesk and open Websites & Domains.
- Select the domain and open Apache & nginx Settings.
- Record the existing nginx settings so you can restore them if needed.
- Keep Proxy mode enabled.
- Enable Smart static files processing.
- Leave Serve static files directly by nginx disabled for this method.
- Save the settings.
Check the website
Test pages, images, stylesheets and downloads. Also check any protected files and redirects. Restore the previous settings if the change causes problems.
In smart processing, Apache decides which files nginx can serve. Plesk notes that files smaller than 1 KB are still served by Apache, so this setting does not transfer every static request to nginx.
Serve static files directly by nginx is a different mode for specified file extensions. It can bypass Apache rules, including relevant .htaccess access restrictions; review those restrictions before using it.