Nginx reverse Proxy cPanel
Hi guys
Anyone using Nginx as a reverse proxy yet with cPanel? I know its still in experimental but was wondering to hear if anyone is using it successfully in shared hosting for that purpose? We have many customers that do not want to purchase Litespeed or use Engintron hence would like to give them confidence that Nginx is built into cPanel hence it can work for them in such a way.
Thanks
-
Hey there! As of the most recent release, Nginx will default to the reverse proxy mode with caching, and all requests forwarded to Apache for processing. If you have the ea-nginx rpm installed, you'll see that behavior change as part of the next update. The ea-nginx-standalone package has been provided to keep the old behavior, as outlined here: I don't have any additional details on the workings just yet, but if you have a test server now might be a good time to try playing around with this, although it's still experimental. 0 -
Question. We are testing it on a server however most of our environment uses lsphp. It works fine thus far. Hence was wondering if php-fpm is critical? or could we leave it to lsapi lastly I see that - The MultiPHP system and Wordpress will only work if you use PHP-FPM.
0 -
In many cases, the PHP handler choice is a personal preference. I don't believe that is in reference the permalink structure, but more the ownership of files being created and the ability to use the site under the MultiPHP system. 0 -
Ok thanks. Asked Cloudlinux aswell as they state they dont advise using it because it does not work with LVE Entry Process limits and PHP Selector. 0 -
if you are using Nginx as a reverse proxy, the PHP handler is in apache and any handler you set in Apache should work ( lsphp/php-fpm/Suphp etc) and there is no restriction of the handler. But if you are trying to use Nginx directly ( which cPanel ea-nginx supports with the Wordpress) you are using php-fpm as the PHP handler . This is because Nginx can work only with PHP-FPM (fastCGI protocol) and CGI/lsphp handlers don't work with Nginx . In short as long as you using Nginx as a PROXY, you can use any handler for PHP, but once you are using Nginx directly ..you are using PHP-FPM only! 0
Please sign in to leave a comment.
Comments
5 comments