What
is directive?
Directives are
files to use for configuring the server.
For example, the web master of an Oracle HTTP Server contains more than
120 directives at his or her disposal for configuring the server. It contains
container directives. The containers have opening and closing tag. Any
directive that doesn’t appear within a container applies to the entire
serve.
What
is the <Directory> directive and how do you maintain it?
It is a group of
directives that apply to the named directory and subdirectories.
Examples of how
to maintain the <Directory> directive:
<Directory
/> -- refers to the whole file system.
Options none
AllowOverride none
</Directory>
<Directory
/home/myfiles/*> --refers to the myfiles subdirectory under home.
AllowOverride none
</Directory>
<DirectoryMatch
“/u0[1-6]/”> --refers to
directories that start with u0 and end with a number from 1 to 6
AllowOverride none
</Directory>
How
to use IP-Based or Name-Based Virtual Hosts?
<VirtualHost
200.200.200.2 200.200.200.3>
DocumentRoot /usr/virtual/htdocs/home
ServerName www.iselfschooling.com
ErrorLog /usr/virtual/logs/error_log
</VirtualHost>
<VirtualHost
www.iselfschooling.com>
DocumentRoot /usr/virtual/htdocs/home
ServerName www.iselfschooling.com
ErrorLog /usr/virtual/logs/error_log
</VirtualHost>