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

Customer should be able to set nginx rules

Tommy10

Basic Pleskian
I have a lot of customers who want to use nginx with WordPress. That because they need access to the nginx rules field. I cannot find any way to let them get access to it.
 
If I correctly understood you mean access to Additional nginx options in Plesk UI? This is a potentially dangerous feature therefore, only admins have access. You can create additional admin's account if you trust your customer.
 
But aren't these performance issues also possible with htaccess files for apache?

We need the nginx rules UI field to set important settings like similar for htaccess (example: WordPress).

Our customers really like to use nginx (it's fast!) but don't like to ask us each time to add specific WordPress nginx rules to their domains.
 
Specifically for apps it would have determined a solution to offer it there.
So the Plesk makes some of the work and specifically choose a server.
 
IF ( and only IF this is really the case! ) you would like a customer being able to add their own nginx - rules, you are able to insert an "include" inside the customers additional nginx directives box ( which will lead to create the file "/var/www/vhosts/system/domain.tld/conf/vhost_nginx.conf" ). The "include" can be linked to any location, where the customer has access to, as for example the webspace - root and you might give the customer the information about the location specification.

Example inside "vhost_nginx.conf":
Code:
    # Special modifications to unique nginx rules
    include /var/www/vhosts/domain.tld/httpdocs/.customer_config/customer_nginx.conf;
    # Special modifications to unique nginx rules

The customer is now able to add his own nginx directives inside the file "/var/www/vhosts/domain.tld/httpdocs/.customer_config/customer_nginx.conf", after the folder ".customer_config" and the file "customer_nginx.conf" have been created.


Pls. note, that this example is insecure and not recommended, so pls. use this at your own risk!
 
Back
Top