Get your free beta license ↗
CMDCommand · run as root on the server · protected family

urbestack-protected-folder-add

First published 4 Nov 20260.2.24Unchanged since publication

Usage

# urbestack-protected-folder-add --user CUSTOMER --path /web/example.com/public_html/private [--no-list-files]

Description

From the command's --help output
Protects a customer's folder with HTTP Basic authentication. Use the path shown in the Files
section, where / represents the customer's home directory. Choose an existing directory served
by one of the customer's sites. UrbeStack refuses paths with a symbolic link in any component.
Every site whose document root is the folder or contains it requires a username and password for
the folder and everything below it. Apache prompts for credentials and denies access until you
add a user with urbestack-protected-user-add.

By default, Apache uses Options +Indexes to list files for signed-in visitors when there is no
index page. With --no-list-files, Apache returns Forbidden in that case. A site that uses the
folder as its document root applies its own directory listing setting.

UrbeStack regenerates the sites' virtual host configurations and reloads Apache immediately.

Options

Find other commands that accept these options

Same in the API

This operation runs the command.

More in protected

7 commands, by what they work onView all commands in this family →
urbestack-protected-
urbestack-protected-folder-
urbestack-protected-user-
Generated from release 0.2.35 (current) · urbestack-protected-folder-add --help outputThis entry has been unchanged since it was first published in release 0.2.24 on 4 Nov 2026.
urbestack.com/docs/commands/urbestack-protected-folder-add/