Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Nginx+Apache Performace for Telegram-Bot

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
tom256
Posts: 24
Joined: Sun Sep 16, 2018 3:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Nginx+Apache Performace for Telegram-Bot
  • Quote

Post by tom256 » Mon Oct 08, 2018 3:41 pm

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?
Last edited by tom256 on Tue Oct 09, 2018 7:27 am, edited 1 time in total.
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Nginx+Apache Performace for Telegram-Bot
  • Quote

Post by ScIT » Mon Oct 08, 2018 4:23 pm

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.
Top

tom256
Posts: 24
Joined: Sun Sep 16, 2018 3:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Nginx+Apache Performace for Telegram-Bot
  • Quote

Post by tom256 » 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
Top

tom256
Posts: 24
Joined: Sun Sep 16, 2018 3:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Nginx+Apache Performace for Telegram-Bot
  • Quote

Post by tom256 » 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!
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Nginx+Apache Performace for Telegram-Bot
  • Quote

Post by ScIT » Tue Oct 09, 2018 7:44 am

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.
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Nginx+Apache Performace for Telegram-Bot
  • Quote

Post by ScIT » Tue Oct 09, 2018 7:44 am

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.
Top

tom256
Posts: 24
Joined: Sun Sep 16, 2018 3:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Nginx+Apache Performace for Telegram-Bot
  • Quote

Post by tom256 » Thu Oct 18, 2018 6:57 am

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/
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password