Page 1 of 1
Nginx+Apache Performace for Telegram-Bot
Posted: Mon Oct 08, 2018 3:41 pm
by tom256
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?
Re: Nginx+Apache Performace for Telegram-Bot
Posted: Mon Oct 08, 2018 4:23 pm
by ScIT
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
Posted: Tue Oct 09, 2018 7:39 am
by tom256
ScIT wrote: ↑Mon Oct 08, 2018 4:23 pm
You can disable the proxy support for each domain
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
Posted: Tue Oct 09, 2018 7:43 am
by tom256
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
Posted: Tue Oct 09, 2018 7:44 am
by ScIT
tom256 wrote: ↑Tue Oct 09, 2018 7:43 am
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!
cant answer that question, you've to check it on your own.
Re: Nginx+Apache Performace for Telegram-Bot
Posted: Tue Oct 09, 2018 7:44 am
by ScIT
tom256 wrote: ↑Tue Oct 09, 2018 7:39 am
ScIT wrote: ↑Mon Oct 08, 2018 4:23 pm
You can disable the proxy support for each domain
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
Yes, that would be the right way to disable nginx, then the requests are only using apache2.
Re: Nginx+Apache Performace for Telegram-Bot
Posted: Thu Oct 18, 2018 6:57 am
by tom256
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/