Plesk

How to enable/disable the option “Restrict the ability to follow symbolic links” for all domains on a Plesk server

Question

How to enable/disable the option "Restrict the ability to follow symbolic links" for all domains on a Plesk server?

Answer

  1. Connect to a Plesk server via SSH.

  2. Run one of the following commands:

    • to enable the option "Restrict the ability to follow symbolic links":

      # for i in `plesk bin site --list`; do plesk bin subscription --update-web-server-settings $i -apache-restrict-follow-sym-links true; done

    • to disable the option "Restrict the ability to follow symbolic links":

      # for i in `plesk bin site --list`; do plesk bin subscription --update-web-server-settings $i -apache-restrict-follow-sym-links false; done

Exit mobile version