home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Online / Apache / conf / httpd.conf < prev    next >
Text File  |  2000-01-27  |  30KB  |  899 lines

  1. ##
  2. ## httpd.conf -- Apache HTTP server configuration file
  3. ##
  4.  
  5. #
  6. # Based upon the NCSA server configuration files originally by Rob McCool.
  7. #
  8. # This is the main Apache server configuration file.  It contains the
  9. # configuration directives that give the server its instructions.
  10. # See <URL:http://www.apache.org/docs/> for detailed information about
  11. # the directives.
  12. #
  13. # Do NOT simply read the instructions in here without understanding
  14. # what they do.  They're here only as hints or reminders.  If you are unsure
  15. # consult the online docs. You have been warned.  
  16. #
  17. # After this file is processed, the server will look for and process
  18. # /usr/local/apache/conf/srm.conf and then /usr/local/apache/conf/access.conf
  19. # unless you have overridden these with ResourceConfig and/or
  20. # AccessConfig directives here.
  21. #
  22. # The configuration directives are grouped into three basic sections:
  23. #  1. Directives that control the operation of the Apache server process as a
  24. #     whole (the 'global environment').
  25. #  2. Directives that define the parameters of the 'main' or 'default' server,
  26. #     which responds to requests that aren't handled by a virtual host.
  27. #     These directives also provide default values for the settings
  28. #     of all virtual hosts.
  29. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  30. #     different IP addresses or hostnames and have them handled by the
  31. #     same Apache server process.
  32. #
  33. # Configuration and logfile names: If the filenames you specify for many
  34. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  35. # server will use that explicit path.  If the filenames do *not* begin
  36. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  37. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  38. # server as "/usr/local/apache/logs/foo.log".
  39. #
  40.  
  41. ### Section 1: Global Environment
  42. #
  43. # The directives in this section affect the overall operation of Apache,
  44. # such as the number of concurrent requests it can handle or where it
  45. # can find its configuration files.
  46. #
  47.  
  48. #
  49. # ServerType is either inetd, or standalone.  Inetd mode is only supported on
  50. # Unix platforms.
  51. #
  52. ServerType standalone
  53.  
  54. #
  55. # ServerRoot: The top of the directory tree under which the server's
  56. # configuration, error, and log files are kept.
  57. #
  58. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  59. # mounted filesystem then please read the LockFile documentation
  60. # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
  61. # you will save yourself a lot of trouble.
  62. #
  63. # Do NOT add a slash at the end of the directory path.
  64. #
  65. ServerRoot "/Apache"
  66.  
  67. #
  68. # The LockFile directive sets the path to the lockfile used when Apache
  69. # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
  70. # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
  71. # its default value. The main reason for changing it is if the logs
  72. # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
  73. # DISK. The PID of the main server process is automatically appended to
  74. # the filename. 
  75. #
  76. #LockFile logs/accept.lock
  77.  
  78. LockFile /T/Apache.lock
  79.  
  80. #
  81. # PidFile: The file in which the server should record its process
  82. # identification number when it starts.
  83. #
  84. PidFile logs/httpd.pid
  85.  
  86. #
  87. # ScoreBoardFile: File used to store internal server process information.
  88. # Not all architectures require this.  But if yours does (you'll know because
  89. # this file will be  created when you run Apache) then you *must* ensure that
  90. # no two invocations of Apache share the same scoreboard file.
  91. #
  92. ScoreBoardFile logs/apache_runtime_status
  93.  
  94. #
  95. # In the standard configuration, the server will process this file,
  96. # srm.conf, and access.conf in that order.  The latter two files are
  97. # now distributed empty, as it is recommended that all directives
  98. # be kept in a single file for simplicity.  The commented-out values
  99. # below are the built-in defaults.  You can have the server ignore
  100. # these files altogether by using "/dev/null" (for Unix) or
  101. # "nul" (for Win32) for the arguments to the directives.
  102. #
  103. #ResourceConfig conf/srm.conf
  104. #AccessConfig conf/access.conf
  105.  
  106. #
  107. # Timeout: The number of seconds before receives and sends time out.
  108. #
  109. Timeout 300
  110.  
  111. #
  112. # KeepAlive: Whether or not to allow persistent connections (more than
  113. # one request per connection). Set to "Off" to deactivate.
  114. #
  115. KeepAlive On
  116.  
  117. #
  118. # MaxKeepAliveRequests: The maximum number of requests to allow
  119. # during a persistent connection. Set to 0 to allow an unlimited amount.
  120. # We recommend you leave this number high, for maximum performance.
  121. #
  122. MaxKeepAliveRequests 100
  123.  
  124. #
  125. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  126. # same client on the same connection.
  127. #
  128. KeepAliveTimeout 15
  129.  
  130. #
  131. # Server-pool size regulation.  Rather than making you guess how many
  132. # server processes you need, Apache dynamically adapts to the load it
  133. # sees --- that is, it tries to maintain enough server processes to
  134. # handle the current load, plus a few spare servers to handle transient
  135. # load spikes (e.g., multiple simultaneous requests from a single
  136. # Netscape browser).
  137. #
  138. # It does this by periodically checking how many servers are waiting
  139. # for a request.  If there are fewer than MinSpareServers, it creates
  140. # a new spare.  If there are more than MaxSpareServers, some of the
  141. # spares die off.  The default values are probably OK for most sites.
  142. #
  143. MinSpareServers 5
  144. MaxSpareServers 10
  145.  
  146. #
  147. # Number of servers to start initially --- should be a reasonable ballpark
  148. # figure.
  149. #
  150. StartServers 5
  151.  
  152. #
  153. # Limit on total number of servers running, i.e., limit on the number
  154. # of clients who can simultaneously connect --- if this limit is ever
  155. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
  156. # It is intended mainly as a brake to keep a runaway server from taking
  157. # the system with it as it spirals down...
  158. #
  159. MaxClients 150
  160.  
  161. #
  162. # MaxRequestsPerChild: the number of requests each child process is
  163. # allowed to process before the child dies.  The child will exit so
  164. # as to avoid problems after prolonged use when Apache (and maybe the
  165. # libraries it uses) leak memory or other resources.  On most systems, this
  166. # isn't really needed, but a few (such as Solaris) do have notable leaks
  167. # in the libraries. For these platforms, set to something like 10000
  168. # or so; a setting of 0 means unlimited.
  169. #
  170. # NOTE: This value does not include keepalive requests after the initial
  171. #       request per connection. For example, if a child process handles
  172. #       an initial request and 10 subsequent "keptalive" requests, it
  173. #       would only count as 1 request towards this limit.
  174. #
  175. MaxRequestsPerChild 30
  176.  
  177. #
  178. # Listen: Allows you to bind Apache to specific IP addresses and/or
  179. # ports, in addition to the default. See also the <VirtualHost>
  180. # directive.
  181. #
  182. #Listen 3000
  183. #Listen 12.34.56.78:80
  184.  
  185. #
  186. # BindAddress: You can support virtual hosts with this option. This directive
  187. # is used to tell the server which IP address to listen to. It can either
  188. # contain "*", an IP address, or a fully qualified Internet domain name.
  189. # See also the <VirtualHost> and Listen directives.
  190. #
  191. #BindAddress *
  192.  
  193. #
  194. # Dynamic Shared Object (DSO) Support
  195. #
  196. # To be able to use the functionality of a module which was built as a DSO you
  197. # have to place corresponding `LoadModule' lines at this location so the
  198. # directives contained in it are actually available _before_ they are used.
  199. # Please read the file README.DSO in the Apache 1.3 distribution for more
  200. # details about the DSO mechanism and run `httpd -l' for the list of already
  201. # built-in (statically linked and thus always available) modules in your httpd
  202. # binary.
  203. #
  204. # Note: The order is which modules are loaded is important.  Don't change
  205. # the order below without expert advice.
  206. #
  207. # Example:
  208. # LoadModule foo_module libexec/mod_foo.so
  209.  
  210. #
  211. # ExtendedStatus controls whether Apache will generate "full" status
  212. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  213. # Off) when the "server-status" handler is called. The default is Off.
  214. #
  215. #ExtendedStatus On
  216.  
  217. ### Section 2: 'Main' server configuration
  218. #
  219. # The directives in this section set up the values used by the 'main'
  220. # server, which responds to any requests that aren't handled by a
  221. # <VirtualHost> definition.  These values also provide defaults for
  222. # any <VirtualHost> containers you may define later in the file.
  223. #
  224. # All of these directives may appear inside <VirtualHost> containers,
  225. # in which case these default settings will be overridden for the
  226. # virtual host being defined.
  227. #
  228.  
  229. #
  230. # If your ServerType directive (set earlier in the 'Global Environment'
  231. # section) is set to "inetd", the next few directives don't have any
  232. # effect since their settings are defined by the inetd configuration.
  233. # Skip ahead to the ServerAdmin directive.
  234. #
  235.  
  236. #
  237. # Port: The port to which the standalone server listens. For
  238. # ports < 1023, you will need httpd to be run as root initially.
  239. #
  240. Port 80
  241.  
  242. #
  243. # If you wish httpd to run as a different user or group, you must run
  244. # httpd as root initially and it will switch.  
  245. #
  246. # User/Group: The name (or #number) of the user/group to run httpd as.
  247. #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  248. #  . On HPUX you may not be able to use shared memory as nobody, and the
  249. #    suggested workaround is to create a user www and use that user.
  250. #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  251. #  when the value of (unsigned)Group is above 60000; 
  252. #  don't use Group  on these systems!
  253. #
  254. User www
  255. Group www
  256.  
  257. #
  258. # ServerAdmin: Your address, where problems with the server should be
  259. # e-mailed.  This address appears on some server-generated pages, such
  260. # as error documents.
  261. #
  262. ServerAdmin you@your.address
  263. # @@
  264.  
  265. #
  266. # ServerName allows you to set a host name which is sent back to clients for
  267. # your server if it's different than the one the program would get (i.e., use
  268. # "www" instead of the host's real name).
  269. #
  270. # Note: You cannot just invent host names and hope they work. The name you 
  271. # define here must be a valid DNS name for your host. If you don't understand
  272. # this, ask your network administrator.
  273. # If your host doesn't have a registered DNS name, enter its IP address here.
  274. # You will have to access it by its address (e.g., http://123.45.67.89/)
  275. # anyway, and this will make redirections work in a sensible way.
  276. #
  277. ServerName new.host.name
  278. # @@
  279.  
  280. #
  281. # DocumentRoot: The directory out of which you will serve your
  282. # documents. By default, all requests are taken from this directory, but
  283. # symbolic links and aliases may be used to point to other locations.
  284. #
  285. DocumentRoot "/Apache/htdocs"
  286.  
  287. #
  288. # Each directory to which Apache has access, can be configured with respect
  289. # to which services and features are allowed and/or disabled in that
  290. # directory (and its subdirectories). 
  291. #
  292. # First, we configure the "default" to be a very restrictive set of 
  293. # permissions.  
  294. #
  295. <Directory />
  296.     Options FollowSymLinks
  297.     AllowOverride None
  298. </Directory>
  299.  
  300. #
  301. # Note that from this point forward you must specifically allow
  302. # particular features to be enabled - so if something's not working as
  303. # you might expect, make sure that you have specifically enabled it
  304. # below.
  305. #
  306.  
  307. #
  308. # This should be changed to whatever you set DocumentRoot to.
  309. #
  310. <Directory "/Apache/htdocs">
  311.  
  312. #
  313. # This may also be "None", "All", or any combination of "Indexes",
  314. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  315. #
  316. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  317. # doesn't give it to you.
  318. #
  319.     Options Indexes FollowSymLinks MultiViews
  320.  
  321. #
  322. # This controls which options the .htaccess files in directories can
  323. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  324. # "AuthConfig", and "Limit"
  325. #
  326.     AllowOverride None
  327.  
  328. #
  329. # Controls who can get stuff from this server.
  330. #
  331.     Order allow,deny
  332.     Allow from all
  333. </Directory>
  334.  
  335. #
  336. # UserDir: The name of the directory which is appended onto a user's home
  337. # directory if a ~user request is received.
  338. #
  339. UserDir .public_html
  340. # @@
  341.  
  342. #
  343. # Control access to UserDir directories.  The following is an example
  344. # for a site where these directories are restricted to read-only.
  345. #
  346. #<Directory /home/*/.public_html>
  347. #    AllowOverride FileInfo AuthConfig Limit
  348. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  349. #    <Limit GET POST OPTIONS PROPFIND>
  350. #        Order allow,deny
  351. #        Allow from all
  352. #    </Limit>
  353. #    <LimitExcept GET POST OPTIONS PROPFIND>
  354. #        Order deny,allow
  355. #        Deny from all
  356. #    </LimitExcept>
  357. #</Directory>
  358.  
  359. #
  360. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  361. # directory index.  Separate multiple entries with spaces.
  362. #
  363. DirectoryIndex index.html index.shtml
  364. # @@
  365.  
  366. #
  367. # AccessFileName: The name of the file to look for in each directory
  368. # for access control information.
  369. #
  370. AccessFileName .htaccess
  371.  
  372. #
  373. # The following lines prevent .htaccess files from being viewed by
  374. # Web clients.  Since .htaccess files often contain authorization
  375. # information, access is disallowed for security reasons.  Comment
  376. # these lines out if you want Web visitors to see the contents of
  377. # .htaccess files.  If you change the AccessFileName directive above,
  378. # be sure to make the corresponding changes here.
  379. #
  380. # Also, folks tend to use names such as .htpasswd for password
  381. # files, so this will protect those as well.
  382. #
  383. <Files ~ "^\.ht">
  384.     Order allow,deny
  385.     Deny from all
  386. </Files>
  387.  
  388. #
  389. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  390. # document that was negotiated on the basis of content. This asks proxy
  391. # servers not to cache the document. Uncommenting the following line disables
  392. # this behavior, and proxies will be allowed to cache the documents.
  393. #
  394. CacheNegotiatedDocs
  395. # @@
  396.  
  397. #
  398. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  399. # Apache needs to construct a self-referencing URL (a URL that refers back
  400. # to the server the response is coming from) it will use ServerName and
  401. # Port to form a "canonical" name.  With this setting off, Apache will
  402. # use the hostname:port that the client supplied, when possible.  This
  403. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  404. #
  405. UseCanonicalName On
  406.  
  407. #
  408. # TypesConfig describes where the mime.types file (or equivalent) is
  409. # to be found.
  410. #
  411. TypesConfig conf/mime.types
  412.  
  413. #
  414. # DefaultType is the default MIME type the server will use for a document
  415. # if it cannot otherwise determine one, such as from filename extensions.
  416. # If your server contains mostly text or HTML documents, "text/plain" is
  417. # a good value.  If most of your content is binary, such as applications
  418. # or images, you may want to use "application/octet-stream" instead to
  419. # keep browsers from trying to display binary files as though they are
  420. # text.
  421. #
  422. DefaultType text/plain
  423.  
  424. #
  425. # The mod_mime_magic module allows the server to use various hints from the
  426. # contents of the file itself to determine its type.  The MIMEMagicFile
  427. # directive tells the module where the hint definitions are located.
  428. # mod_mime_magic is not part of the default server (you have to add
  429. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  430. # Environment' section], or recompile the server and include mod_mime_magic
  431. # as part of the configuration), so it's enclosed in an <IfModule> container.
  432. # This means that the MIMEMagicFile directive will only be processed if the
  433. # module is part of the server.
  434. #
  435. <IfModule mod_mime_magic.c>
  436.     MIMEMagicFile conf/magic
  437. </IfModule>
  438.  
  439. #
  440. # HostnameLookups: Log the names of clients or just their IP addresses
  441. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  442. # The default is off because it'd be overall better for the net if people
  443. # had to knowingly turn this feature on, since enabling it means that
  444. # each client request will result in AT LEAST one lookup request to the
  445. # nameserver.
  446. #
  447. HostnameLookups Off
  448.  
  449. #
  450. # ErrorLog: The location of the error log file.
  451. # If you do not specify an ErrorLog directive within a <VirtualHost>
  452. # container, error messages relating to that virtual host will be
  453. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  454. # container, that host's errors will be logged there and not here.
  455. #
  456. ErrorLog logs/error.log
  457.  
  458. #
  459. # LogLevel: Control the number of messages logged to the error_log.
  460. # Possible values include: debug, info, notice, warn, error, crit,
  461. # alert, emerg.
  462. #
  463. LogLevel warn
  464.  
  465. #
  466. # The following directives define some format nicknames for use with
  467. # a CustomLog directive (see below).
  468. #
  469. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  470. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  471. LogFormat "%{Referer}i -> %U" referer
  472. LogFormat "%{User-agent}i" agent
  473.  
  474. #
  475. # The location and format of the access logfile (Common Logfile Format).
  476. # If you do not define any access logfiles within a <VirtualHost>
  477. # container, they will be logged here.  Contrariwise, if you *do*
  478. # define per-<VirtualHost> access logfiles, transactions will be
  479. # logged therein and *not* in this file.
  480. #
  481. CustomLog logs/access.log common
  482.  
  483. #
  484. # If you would like to have agent and referer logfiles, uncomment the
  485. # following directives.
  486. #
  487. #CustomLog logs/referer.log referer
  488. #CustomLog logs/agent.log agent
  489.  
  490. #
  491. # If you prefer a single logfile with access, agent, and referer information
  492. # (Combined Logfile Format) you can use the following directive.
  493. #
  494. #CustomLog logs/access.log combined
  495.  
  496. #
  497. # Optionally add a line containing the server version and virtual host
  498. # name to server-generated pages (error documents, FTP directory listings,
  499. # mod_status and mod_info output etc., but not CGI generated documents).
  500. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  501. # Set to one of:  On | Off | EMail
  502. #
  503. ServerSignature EMail
  504. # @@
  505.  
  506. #
  507. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  508. # Alias fakename realname
  509. #
  510. # Note that if you include a trailing / on fakename then the server will
  511. # require it to be present in the URL.  So "/icons" isn't aliased in this
  512. # example, only "/icons/"..
  513. #
  514. Alias /icons/ "/Apache/icons/"
  515.  
  516. <Directory "/Apache/icons">
  517.     Options Indexes MultiViews
  518.     AllowOverride None
  519.     Order allow,deny
  520.     Allow from all
  521. </Directory>
  522.  
  523. #
  524. # ScriptAlias: This controls which directories contain server scripts.
  525. # ScriptAliases are essentially the same as Aliases, except that
  526. # documents in the realname directory are treated as applications and
  527. # run by the server when requested rather than as documents sent to the client.
  528. # The same rules about trailing "/" apply to ScriptAlias directives as to
  529. # Alias.
  530. #
  531. ScriptAlias /cgi-bin/ "/Apache/cgi-bin/"
  532.  
  533. #
  534. # "/Apache/cgi-bin" should be changed to whatever your ScriptAliased
  535. # CGI directory exists, if you have that configured.
  536. #
  537. <Directory "/Apache/cgi-bin">
  538.     AllowOverride None
  539.     Options None
  540.     Order allow,deny
  541.     Allow from all
  542. </Directory>
  543.  
  544. #
  545. # Redirect allows you to tell clients about documents which used to exist in
  546. # your server's namespace, but do not anymore. This allows you to tell the
  547. # clients where to look for the relocated document.
  548. # Format: Redirect old-URI new-URL
  549. #
  550.  
  551. #
  552. # Directives controlling the display of server-generated directory listings.
  553. #
  554.  
  555. #
  556. # FancyIndexing is whether you want fancy directory indexing or standard
  557. #
  558. IndexOptions FancyIndexing
  559.  
  560. #
  561. # AddIcon* directives tell the server which icon to show for different
  562. # files or filename extensions.  These are only displayed for
  563. # FancyIndexed directories.
  564. #
  565. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  566.  
  567. AddIconByType (TXT,/icons/text.gif) text/*
  568. AddIconByType (IMG,/icons/image2.gif) image/*
  569. AddIconByType (SND,/icons/sound2.gif) audio/*
  570. AddIconByType (VID,/icons/movie.gif) video/*
  571.  
  572. AddIcon /icons/binary.gif .bin .exe
  573. AddIcon /icons/binhex.gif .hqx
  574. AddIcon /icons/tar.gif .tar
  575. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  576. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip .lha
  577. AddIcon /icons/a.gif .ps .ai .eps
  578. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  579. AddIcon /icons/text.gif .txt
  580. AddIcon /icons/c.gif .c
  581. AddIcon /icons/p.gif .pl .py
  582. AddIcon /icons/f.gif .for
  583. AddIcon /icons/dvi.gif .dvi
  584. AddIcon /icons/uuencoded.gif .uu
  585. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  586. AddIcon /icons/tex.gif .tex
  587. AddIcon /icons/bomb.gif core
  588.  
  589. AddIcon /icons/back.gif ..
  590. AddIcon /icons/hand.right.gif README
  591. AddIcon /icons/folder.gif ^^DIRECTORY^^
  592. AddIcon /icons/blank.gif ^^BLANKICON^^
  593.  
  594. #
  595. # DefaultIcon is which icon to show for files which do not have an icon
  596. # explicitly set.
  597. #
  598. DefaultIcon /icons/unknown.gif
  599.  
  600. #
  601. # AddDescription allows you to place a short description after a file in
  602. # server-generated indexes.  These are only displayed for FancyIndexed
  603. # directories.
  604. # Format: AddDescription "description" filename
  605. #
  606. AddDescription "GZIP compressed document" .gz
  607. AddDescription "tar archive" .tar
  608. AddDescription "GZIP compressed tar archive" .tgz
  609.  
  610. #
  611. # ReadmeName is the name of the README file the server will look for by
  612. # default, and append to directory listings.
  613. #
  614. # HeaderName is the name of a file which should be prepended to
  615. # directory indexes. 
  616. #
  617. # The server will first look for name.html and include it if found.
  618. # If name.html doesn't exist, the server will then look for name.txt
  619. # and include it as plaintext if found.
  620. #
  621. ReadmeName README
  622. HeaderName HEADER
  623.  
  624. #
  625. # IndexIgnore is a set of filenames which directory indexing should ignore
  626. # and not include in the listing.  Shell-style wildcarding is permitted.
  627. #
  628. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  629.  
  630. #
  631. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  632. # information on the fly. Note: Not all browsers support this.
  633. # Despite the name similarity, the following Add* directives have nothing
  634. # to do with the FancyIndexing customization directives above.
  635. #
  636. AddEncoding x-compress Z
  637. AddEncoding x-gzip gz tgz
  638.  
  639. #
  640. # AddLanguage allows you to specify the language of a document. You can
  641. # then use content negotiation to give a browser a file in a language
  642. # it can understand.
  643. #
  644. # Note 1: The suffix does not have to be the same as the language 
  645. # keyword --- those with documents in Polish (whose net-standard 
  646. # language code is pl) may wish to use "AddLanguage pl .po" to 
  647. # avoid the ambiguity with the common suffix for perl scripts.
  648. #
  649. # Note 2: The example entries below illustrate that in quite
  650. # some cases the two character 'Language' abbriviation is not
  651. # identical to the two character 'Country' code for it's country,
  652. # E.g. 'Danmark/dk' versus 'Danish/da'.
  653. #
  654. # Note 3: In the case of 'ltz' we violate the RFC by using a three char 
  655. # specifier. But there is 'work in progress' to fix this and get 
  656. # the reference data for rfc1766 cleaned up.
  657. #
  658. # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  659. # French (fr) - German (de) - Greek-Modern (el)
  660. # Italian (it) -Portugese (pt) - Luxembourgeois* (ltz)
  661. # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  662. #
  663. AddLanguage da .dk
  664. AddLanguage nl .nl
  665. AddLanguage en .en
  666. AddLanguage et .ee
  667. AddLanguage fr .fr
  668. AddLanguage de .de
  669. AddLanguage el .el
  670. AddLanguage it .it
  671. AddLanguage pt .pt
  672. AddLanguage ltz .lu
  673. AddLanguage ca .ca
  674. AddLanguage es .es
  675. AddLanguage sv .se
  676. AddLanguage cz .cz
  677.  
  678. #
  679. # LanguagePriority allows you to give precedence to some languages
  680. # in case of a tie during content negotiation.
  681. # Just list the languages in decreasing order of preference. We have
  682. # more or less alphabetized them here. You probably want to change this.
  683. #
  684. LanguagePriority de en da nl et fr el it pt ltz ca es sv
  685. # @@
  686.  
  687. #
  688. # AddType allows you to tweak mime.types without actually editing it, or to
  689. # make certain files to be certain types.
  690. #
  691. # For example, the PHP 3.x module (not part of the Apache distribution - see
  692. # http://www.php.net) will typically use:
  693. #
  694. #AddType application/x-httpd-php3 .php3
  695. #AddType application/x-httpd-php3-source .phps
  696. #
  697. # And for PHP 4.x, use:
  698. #
  699. #AddType application/x-httpd-php .php
  700. #AddType application/x-httpd-php-source .phps
  701.  
  702. AddType application/x-tar .tgz
  703.  
  704. #
  705. # AddHandler allows you to map certain file extensions to "handlers",
  706. # actions unrelated to filetype. These can be either built into the server
  707. # or added with the Action command (see below)
  708. #
  709. # If you want to use server side includes, or CGI outside
  710. # ScriptAliased directories, uncomment the following lines.
  711. #
  712. # To use CGI scripts:
  713. #
  714. AddHandler cgi-script .cgi
  715.  
  716. #
  717. # To use server-parsed HTML files
  718. #
  719. AddType text/html .shtml
  720. AddHandler server-parsed .shtml
  721.  
  722. #
  723. # Uncomment the following line to enable Apache's send-asis HTTP file
  724. # feature
  725. #
  726. AddHandler send-as-is asis
  727.  
  728. #
  729. # If you wish to use server-parsed imagemap files, use
  730. #
  731. #AddHandler imap-file map
  732.  
  733. #
  734. # To enable type maps, you might want to use
  735. #
  736. #AddHandler type-map var
  737.  
  738. #
  739. # Action lets you define media types that will execute a script whenever
  740. # a matching file is called. This eliminates the need for repeated URL
  741. # pathnames for oft-used CGI file processors.
  742. # Format: Action media/type /cgi-script/location
  743. # Format: Action handler-name /cgi-script/location
  744. #
  745.  
  746. #
  747. # MetaDir: specifies the name of the directory in which Apache can find
  748. # meta information files. These files contain additional HTTP headers
  749. # to include when sending the document
  750. #
  751. #MetaDir .web
  752.  
  753. #
  754. # MetaSuffix: specifies the file name suffix for the file containing the
  755. # meta information.
  756. #
  757. #MetaSuffix .meta
  758.  
  759. #
  760. # Customizable error response (Apache style)
  761. #  these come in three flavors
  762. #
  763. #    1) plain text
  764. #ErrorDocument 500 "The server made a boo boo.
  765. #  n.b.  the (") marks it as text, it does not get output
  766. #
  767. #    2) local redirects
  768. #ErrorDocument 404 /missing.html
  769. #  to redirect to local URL /missing.html
  770. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  771. #  N.B.: You can redirect to a script or a document using server-side-includes.
  772. #
  773. #    3) external redirects
  774. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  775. #  N.B.: Many of the environment variables associated with the original
  776. #  request will *not* be available to such a script.
  777.  
  778. #
  779. # The following directives modify normal HTTP response behavior.
  780. # The first directive disables keepalive for Netscape 2.x and browsers that
  781. # spoof it. There are known problems with these browser implementations.
  782. # The second directive is for Microsoft Internet Explorer 4.0b2
  783. # which has a broken HTTP/1.1 implementation and does not properly
  784. # support keepalive when it is used on 301 or 302 (redirect) responses.
  785. #
  786. BrowserMatch "Mozilla/2" nokeepalive
  787. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  788.  
  789. #
  790. # The following directive disables HTTP/1.1 responses to browsers which
  791. # are in violation of the HTTP/1.0 spec by not being able to grok a
  792. # basic 1.1 response.
  793. #
  794. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  795. BrowserMatch "Java/1\.0" force-response-1.0
  796. BrowserMatch "JDK/1\.0" force-response-1.0
  797.  
  798. #
  799. # Allow server status reports, with the URL of http://servername/server-status
  800. # Change the ".your_domain.com" to match your domain to enable.
  801. #
  802. <Location /server-status>
  803.     SetHandler server-status
  804. #    Order deny,allow
  805. #    Deny from all
  806. #    Allow from .your_domain.com
  807. </Location>
  808. # @@
  809.  
  810. #
  811. # Allow remote server configuration reports, with the URL of
  812. #  http://servername/server-info (requires that mod_info.c be loaded).
  813. # Change the ".your_domain.com" to match your domain to enable.
  814. #
  815. <Location /server-info>
  816.     SetHandler server-info
  817. #    Order deny,allow
  818. #    Deny from all
  819. #    Allow from .your_domain.com
  820. </Location>
  821. # @@
  822.  
  823. #
  824. # There have been reports of people trying to abuse an old bug from pre-1.1
  825. # days.  This bug involved a CGI script distributed as a part of Apache.
  826. # By uncommenting these lines you can redirect these attacks to a logging 
  827. # script on phf.apache.org.  Or, you can record them yourself, using the script
  828. # support/phf_abuse_log.cgi.
  829. #
  830. #<Location /cgi-bin/phf*>
  831. #    Deny from all
  832. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  833. #</Location>
  834.  
  835. #
  836. # Proxy Server directives. Uncomment the following lines to
  837. # enable the proxy server:
  838. #
  839. #<IfModule mod_proxy.c>
  840. #ProxyRequests On
  841. #
  842. #<Directory proxy:*>
  843. #    Order deny,allow
  844. #    Deny from all
  845. #    Allow from .your_domain.com
  846. #</Directory>
  847. # @@
  848.  
  849. #
  850. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  851. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  852. # Set to one of: Off | On | Full | Block
  853. #
  854. #ProxyVia On
  855.  
  856. #
  857. # To enable the cache as well, edit and uncomment the following lines:
  858. # (no cacheing without CacheRoot)
  859. #
  860. #CacheRoot "/Apache/proxy"
  861. #CacheSize 5
  862. #CacheGcInterval 4
  863. #CacheMaxExpire 24
  864. #CacheLastModifiedFactor 0.1
  865. #CacheDefaultExpire 1
  866. #NoCache a_domain.com another_domain.edu joes.garage_sale.com
  867.  
  868. #</IfModule>
  869. # End of proxy directives.
  870.  
  871. ### Section 3: Virtual Hosts
  872. #
  873. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  874. # machine you can setup VirtualHost containers for them.
  875. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  876. # for further details before you try to setup virtual hosts.
  877. # You may use the command line option '-S' to verify your virtual host
  878. # configuration.
  879.  
  880. #
  881. # If you want to use name-based virtual hosts you need to define at
  882. # least one IP address (and port number) for them.
  883. #
  884. #NameVirtualHost 12.34.56.78:80
  885. #NameVirtualHost 172.20.230.92
  886.  
  887. #
  888. # VirtualHost example:
  889. # Almost any Apache directive may go into a VirtualHost container.
  890. #
  891. #<VirtualHost ip.address.of.host.some_domain.com>
  892. #    ServerAdmin webmaster@host.some_domain.com
  893. #    DocumentRoot /www/docs/host.some_domain.com
  894. #    ServerName host.some_domain.com
  895. #    ErrorLog logs/host.some_domain.com-error_log
  896. #    CustomLog logs/host.some_domain.com-access_log common
  897. #</VirtualHost>
  898.  
  899.