• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Custom nginx.conf by plan

Émerson Felinto

Regular Pleskian
Can I create different nginx.conf for each plan?
The purpose is to charge my customers different prices according to the number of simultaneous connections.
Plan 1 could support up to 50 connections.
Plan 2 could support up to 100 connections.
Can this be done in Plesk using the Nginx engine (Nginx only)?
 
In the "nginx directives" of your Service plan you could configure specific options for your purpose, but I'm afraid that ngx_http_limit_conn module is required. By default Plesk version of nginx doesn't support it,
 
Thanks, but I've tried compiling nginx before and failed miserably.
There were several mistakes and it made me give up right away.
Maybe when I learn more about it I'll do it myself or hire someone to do it for me.

An alternative, not following that line exactly would be the limitation of RAM and CPU, although it is somewhat less intuitive for the client and the fact that Plesk does not provide graphics showing usage for my clients is a problem. But it could work.
 
Thanks, but I've tried compiling nginx before and failed miserably.
There were several mistakes and it made me give up right away.
Maybe when I learn more about it I'll do it myself or hire someone to do it for me.

An alternative, not following that line exactly would be the limitation of RAM and CPU, although it is somewhat less intuitive for the client and the fact that Plesk does not provide graphics showing usage for my clients is a problem. But it could work.
hello again Émerson Felinto,
mmm, maybe the "Plesk Cgroups Manager" module will help you in a way. If you can calculate how many resources consumed each request you could limit the number of requests based on the resources you set up for each subscription.

 
Back
Top