Apache blocks are directives used to enclose a set of configurations. For example, the Directory directive is used to enclose a group of directives that apply only to a directory (and its sub-directories) specified within the enclosure. For example:
Options Indexes FollowSymLinks
In this example, the directives included between the Directory tags (comparable to standard HTML tag syntax) are all applied as part of the Apache block.
A block can be defined at any level in the object's hierarchy so that one or more server configurations can inherit it. This allows the block definition to be applied in exactly the same way by multiple Web servers without redefining the block for each server. A block cannot contain any other objects.
Before adding a block, you might want to look at the documentation for its directives in the Directive Quick Reference on the Apache.org Web site.
To add a new block:
From thelist, click a server group, server name, or virtual host object where you want to add the block object.
In thedrop-down list, select , then click .
In the Add Block dialog box, type a name for the block object in thefield.
In thefield, type the file path used in the block's open statement.
Scope refers to the file path specified in the open statement of a block. For example, if the block type is Directory, the block's open statement might be:
In this case, you would type sys:\apache2\htdocs in the field.
Click thedrop-down list and select the type of block being defined.
Because each block type is an actual directive, you can look up the directive in the Apache documentation for more information about each block type. See the Directive Quick Reference on the Apache.org Web site.
To edit a block:
In thelist, click a server group, server name, module, or virtual host object that contains the block you want to edit.
Click the block that you want to edit, selectfrom the drop-down list, then click .
In the Edit Block dialog box, make the necessary changes.
To remove a block:
In thelist, click a server group, server name, module, or virtual host object that contains the block you want to remove.
Click the block that you want removed, selectfrom the drop-down list, then click .
IMPORTANT:After you remove a block, there is no way to retrieve it. You must create it again.