Hi Xavier12,
at the moment, there is no "NGINX" - only way, when you use Plesk, but you can always perform a command like "./subscription --update-web-server-settings example.com -nginx-serve-static true -nginx-serve-php true".
Please see all possible commands for this subscription utility in the documentation:
Note: We strongly recommend that you use shell script files to handle events. Although you can assign direct system commands, they might not work. For example, commands with output redirection operators < or > will not work.
#!/bin/bash
echo "Start test for event-handler to event_handler.log" >> /tmp/event_handler.log
/bin/date >> /tmp/event_handler.log
/usr/bin/id >> /tmp/event_handler.log
echo "New customer created for testing" >> /tmp/event_handler.log
echo "name: ${NEW_CONTACT_NAME}" >> /tmp/event_handler.log
echo "login: ${NEW_LOGIN_NAME}" >> /tmp/event_handler.log
echo "End test for event-handler to event_handler.log" >> /tmp/event_handler.log
Hi Xavier12,
sure does it make sense, but you have to define in your command WHERE you want the variable "NEW_DOMAIN_NAME" should be taken from - the subscription utility doesn't know this by default, because the variable is not used in any parameter definition with this utility.
Please use this documentation to learn how the event handler works:
Adding Event Handlers (Linux) ( Online documentation - Administrator's Guide, Parallels Plesk 12.0 )
and use the additional informations for the pre-defined events at:
Appendix C: Event Parameters Passed by Event Handlers ( Online documentation - Administrator's Guide, Parallels Plesk 12.0 )
Try to use <NEW_DOMAIN_NAME> instead of {NEW_DOMAIN_NAME}