- Plesk 12.5 for Linux
- Plesk Onyx for Linux
In process list we can see that same domain served by
# top -c | grep domain.tld
php-fpm: pool domain.tld
/usr/bin/php5-cgi -c /var/www/vhosts/system/domain.tld/etc/php.ini
This behavior is caused by two things:
- Site is using URL rewrite functions, most CMS (WordPress, Joomla etc.) are using it.
Serve static files directly by nginx option.
Given option is implemented in ngnix via
try_filesdirective which is checks the existence of files in the specified order and uses the first found file for request processing; the processing is performed in the current context. The path to a file is constructed from the file parameter according to the root and alias directives. If none of the files were found, an internal redirect to the apache is made.
Modify URL rewrite rules to remove
htmlsuffix from URL. This also can be managed via some particular CMS settings.
htmlor any other extension from static files list in
Domains > domain.tld > Web Server Settings > nginx settings > Serve static files directly by nginx
If this option is enabled requests for the listed file extensions will be handled by nginx only and never reach Apache, in case if the file is present on file system. Apache rewrite rules and
directives will not be applied.