Scripts for managing users webserver: Nginx or Apache
To list users current webserver run the following command:
opencli webserver-get_webserver_for_user <USERNAME>
Example:
# opencli webserver-get_webserver_for_user stefan
Web Server for user stefan: apache
The script will by default display cached information from the users server_config.yml
file, optionally you can add --update
flag to check the current webserver in the container and update the file.
Example:
# opencli webserver-get_webserver_for_user stefan --update
Web Server for user stefan updated to: apache
The fixperms
script can be used to fix permissions on user files.
It performs:
sets the permissions of all directories to 755.
opencli webserver-fixperms <USERNAME>
You can pass the --all
flag to change permissions for all users:
opencli webserver-fixperms --all
You can install modsecurity by using:
opencli nginx-install_modsec