The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
Apache containers are special directives that group other
directives, often to create separate web directory hierarchies
with different characteristics. A container is delimited by the
XML-style tags
< and
type></, where
type>type is the container type.
The following are examples of container types:
-
<Directorydirectory-path> Applies the contained directives to directories under
directory-path. The following example applies theDeny,Allow, andAllowOverridedirectives to all files and directories under/var/www/html/sandbox.<Directory /var/www/html/sandbox> Deny from all Allow from 192.168.2. AllowOverride All </Directory>
The
AllowOverridedirective is only used inDirectorycontainers and specifies which classes of directives are allowed in.htaccessfiles. (.htaccessconfiguration files typically contain user authentication directives for a web directory.) The directive classes control such aspects as authorization, client access, and directory indexing. You can specify the argumentAllto permit all classes of directives in.htaccessfiles, a space-separated list of directive classes to permit only those classes, orNoneto make the server ignore.htaccessfiles altogether.NoteIf SELinux is enabled on the system, you must change the default file type if the file system hierarchy specified by
<Directory>is not under/var/www/html.-
<IfModule [!]module> Applies directives if the specified module has been loaded, or, when the exclamation point (
!) is specified, if the module has not been loaded.The following example disallows user-published content if
mod_userdir.chas been loaded:<IfModule mod_userdir.c> UserDir disabled </IfModule>
-
<Limitmethod...> Places limits on the specified HTTP methods (such as GET, OPTIONS, POST, and PUT) for use with a Uniform Resource Identifier (URI).
The following example limits systems in
mydom.comto using only theGETandPUTmethods to perform HTTP downloads and uploads:<Limit GET PUT> Order deny,allow Deny from all Allow from .example.com </Limit>
Systems outside
mydom.comcannot useGETandPUTwith the URI.-
<LimitExceptmethod...> Places limits on all except the specified HTTP methods for use with a Uniform Resource Identifier (URI).
The following example disallows any system from using any method other than
GETandPOST:<LimitExcept GET POST> Order deny,allow Deny from all </Limit>
-
VirtualHostIP_address:port... Specifies a group of directives that define a container for a virtual host. See Section 15.6, “Configuring Apache Virtual Hosts”.

