Plesk

How to get and set Additional Apache/Nginx directives via CLI?

  1. Connect to the server via SSH
  2. Run the following command:

    # plesk bin domain --show-web-server-settings example.com

Set directives

  1. Log into Plesk

  2. Navigate to Domains > example.com > Hosting & DNS > Apache & Nginx
  3. Add the directives into according fields
Exit mobile version