Prev | Current Page 1203 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

Both of these options can occur more than once within a block and are handled based on
the Order setting. Setting Order to Deny,Allow permits access to any host that is not listed in a
Deny directive. A setting of Allow,Deny denies access to any host not allowed in an Allow directive.
Like most other options, the most specific Allow or Deny option for a host is used, meaning that
you can Deny access to a range and Allow access to subsets of that range. By adding the Satisfy
option and some additional parameters, you can add password authentication. For more information
about access control, see http://httpd.apache.org/docs/mod/mod_access.html.
Location blocks (in the generic sense) can be enclosed within a VirtualHost block. Virtual hosts,
which are described in greater detail in the next section, are a convenient (and almost essential)
tool for altering server behavior based on the server address or name that a request is directed to.
Most global configuration options are applied to virtual hosts but can be overridden by directives
within the VirtualHost block.
NOTE
657
Running a Linux, Apache, MySQL, and PHP (LAMP) Server 24
Adding a Virtual Host to Apache
Apache supports the creation of separate Web sites within a single server to keep content separate.


Pages:
1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215