Web server tutorial - Part 2
TypesConfig: Describes where the mime.types file (or equivalent) is to be found.
TypesConfig /etc/mime.types
DefaultType is the default MIME type the server will use for a document if
it cannot otherwise determine one, such as from filename extensions.
If your server contains mostly text or HTML documents, "text/plain"
is a good value. If most of your content is binary, such as applications or
images, you may want to use "application/octet-stream" instead to
keep browsers from trying to display binary files as though they are text.
DefaultType text/plain
The mod_mime_magic module allows the server to use various hints from the contents
of the file itself to determine its type. The MIMEMagicFile directive tells
the module where the hint definitions are located.
mod_mime_magic is not part of the default server (you have to add it yourself
with a LoadModule [see the DSO paragraph in the 'Global Environment' section],
or recompile the server and include mod_mime_magic as part of the configuration),
so it's enclosed in an
This means that the MIMEMagicFile directive will only be processed if the module
is part of the server.
MIMEMagicFile share/magic
HostnameLookups: Log the names of clients or just their IP addresses e.g.,
www.Apache.org (on) or 204.62.129.132 (off).
The default is off because it'd be overall better for the net if people had
to knowingly turn this feature on, since enabling it means that each client
request will result in AT LEAST one lookup request to thenameserver.
HostnameLookups Off
ErrorLog: The location of the error log file.
If you do not specify an ErrorLog directive within a
error messages relating to that virtual host will be logged here. If you do
define an error logfile for a
will be logged there and not here.
ErrorLog /var/log/httpd/error_log
LogLevel: Control the number of messages logged to the error_log.
Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel warn
- « first
- ‹ previous
- of 10
- next ›
- last »