Nginx Modes
Hybrid, Proxy, and Nginx Modes
Cpnginx provides three modes of nginx service. This comes with the default nginx installation. You can choose the default nginx mode of operation from Preferences → Settings tab. See below the meaning of these modes
- Hybrid: Static files will work from nginx, and dynamic files will work from Apache. Some .htaccess rules don’t work.
- Proxy: Nginx works as a proxy server in front of Apache. .htaccess rules work.
- Nginx: Nginx works as a standalone. All files will serve from nginx. Multi PHP-FPM only works with this nginx mode unless you need to build a custom Nginx template. .htaccess rules don’t work.
Cpnginx has the option to add nginx custom rewrite rules. You may read below to know how to add custom nginx rewrite rules
All app templates, like WordPress, Joomla, etc, will work in Nginx mode. That means all such websites work from Nginx directly.