To do that, login into our VirtualMin hosting panel, then:
- Select domain to protect in drop-down
- Click Services menu, "Protected Directories" submenu
- Click "Add protection for a new directory." link
- Select radio "Sub-directory", and enter "/administrator" as subdirectory and any text to display like "Private area" in "Authentication realm"
- Click "Save" button.
- Click "Edit Users" main menu, click a user to give access to,
- Open "Other user permissions" accordion-tab
- And in "Allow access to web directories" select the directory in "All directories" and click the right-arrow button to move it into "Allowed directories".
- Save user and repeat for any other user to give individual access. Their login username is the one displayed in "IMAP / POP3 / FTP login", and same password than for mail and other things
Consider adding https access to have encrypted access to your server, avoiding passwords transmitted in clear-text.