• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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