Nginx+Apache Performace for Telegram-Bot
Nginx+Apache Performace for Telegram-Bot
Hi, I'm using VestaCP for the server of a Telegram-Bot. As you may know Telegram sends thousands of request to the Bot's server and If I decide to answer to some of those requests in my PHP script,then after that I'll make a curl request to the telegram's server.
But as much as I know, VestaCP uses Nginx+Apache combination, in this way, Nginx is great for serving requests of static files, and Apache handles dynamic requests.
But for a a Telegram-Bot server, "all" the requests are dynamic! hundreds of requests per second, all dynamic!
Is it a good solution that I uninstall or disable Nginx? Because I don't need it here to serve static files! it just increase my CPU-usage!
How can I uninstall or disable Nginx in a VestaCP ubuntu server?
But as much as I know, VestaCP uses Nginx+Apache combination, in this way, Nginx is great for serving requests of static files, and Apache handles dynamic requests.
But for a a Telegram-Bot server, "all" the requests are dynamic! hundreds of requests per second, all dynamic!
Is it a good solution that I uninstall or disable Nginx? Because I don't need it here to serve static files! it just increase my CPU-usage!
How can I uninstall or disable Nginx in a VestaCP ubuntu server?
Last edited by tom256 on Tue Oct 09, 2018 7:27 am, edited 1 time in total.
Re: Nginx+Apache Performace for Telegram-Bot
You can disable the proxy support for each domain, just untick the box right after "Proxy Support" and press save. But as information: On my side, the ssl cert stopped working.
Re: Nginx+Apache Performace for Telegram-Bot
Is Proxy Support in WEB->[MY_DOMAIN.com]->EDIT->Proxy Support(NGINX) ?
Does it disable Nginx and then I only use Apache?
for SSL you've mentioned, I'm using Cloudflare, I rely on it's SSL and I didn't use SSL in VestaCP
Re: Nginx+Apache Performace for Telegram-Bot
More important Question wasn't answered here, Does disabling Nginx/Proxy improves my performance? Because "all" my received requests are dynamic! hundreds of requests per second, all dynamic!
Re: Nginx+Apache Performace for Telegram-Bot
Yes, that would be the right way to disable nginx, then the requests are only using apache2.
Re: Nginx+Apache Performace for Telegram-Bot
Any suggestion about switching to Nginx+PHP-FPM? Wil I see any increasing in performance?
How can I do it now when already installed VestaCP? I saw that I can install it with custom install:
https://vestacp.com/install/
How can I do it now when already installed VestaCP? I saw that I can install it with custom install:
https://vestacp.com/install/