- Plesk Onyx for Linux
How to get and set Additional Apache/Nginx directives via CLI?
In order to get current Apache Additional Settings for a domain:
- Connect to the server via SSH;
- Run the following command:
# plesk bin domain --show-web-server-settings example.com | grep -A 10 "[additional settings]"
To set them, edit the following files, since they have the content of Additional Directives set in Plesk UI:
Currently, there is no way to get Additional Nginx directives over CLI. The following request was created PPPM-9862, which will be implemented in one of the future product updates.
To edit Additional Nginx directives: