Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Guida di Installazione Pagina 193

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 192
Chapter 15. Apache 193
15.3.67. MetaDir
MetaDir specifies the name of a directory where your Web server should look for files containing
meta information (extra HTTP headers) to include when serving documents.
15.3.68. MetaSuffix
MetaSuffix specifies the filename suffix for the file that contains meta information (extra HTTP
headers), which should be located in the MetaDir directory.
15.3.69. ErrorDocument
By default, in the event of a problem or error, your Web server outputs a simple and usually cryptic
error message back to the requesting client. Instead of using the default, you can use ErrorDocument
to configure your Web server so that it outputs a customized message or redirects the client to a local
or external URL. The ErrorDocument directive simply associates a HTTP response code with a
message or a URL which will be sent back to the client.
15.3.70. BrowserMatch
The BrowserMatch directive allows your server to define environment variables and take appropri-
ate actions based on the User-Agent HTTP header field which identifies the client’s browser. By
default, your Web server uses BrowserMatch to deny connections to specific browsers with known
problems and also to disable keepalives and HTTP header flushes for browsers that are known to have
problems with those actions.
15.3.71. Location
Location and /Location tags allow you to specify access control based on the URL.
The next use of Location tags is located within IfModule mod_perl.c tags. These configuration
directives are in effect if the mod_perl.so DSO is loaded. See Section 15.4 for more information
about adding modules to Apache.
The Location tags name the /var/www/perl directory (an Alias for /perl) as the directory from
which Perl scripts will be served. If a document is requested with an URL containing /perl in the
path, your Web server will look in /var/www/perl/ for the appropriate Perl script.
Several other Location options are commented out in your httpd.conf file. If you want to en-
able the functionality they provide, you will need to uncomment the appropriate section of directives.
Note
The put module is no longer distributed as part of the Apache package. You will have to load the
mod_put package separately.
Immediately after the Perl directives is a section of directives for enabling http put (used by Netscape
Gold’s publish feature), which can post webpages to a Web server. If you want to allow http put, you
will need to uncomment the following lines:
#Alias /upload /tmp
#
Location /upload
# EnablePut On
Vedere la pagina 192
1 2 ... 188 189 190 191 192 193 194 195 196 197 198 ... 281 282

Commenti su questo manuale

Nessun commento