home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / lib / dav / drafts / mac_httpd.conf < prev    next >
Encoding:
Text File  |  2004-03-08  |  37.1 KB  |  1,090 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. # /private/etc/httpd/srm.conf and then /private/etc/httpd/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. ServerRoot "/usr"
  64.  
  65. #
  66. # The LockFile directive sets the path to the lockfile used when Apache
  67. # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
  68. # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
  69. # its default value. The main reason for changing it is if the logs
  70. # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
  71. # DISK. The PID of the main server process is automatically appended to
  72. # the filename. 
  73. #
  74. #LockFile "/private/var/run/httpd.lock"
  75.  
  76. #
  77. # PidFile: The file in which the server should record its process
  78. # identification number when it starts.
  79. #
  80. PidFile "/private/var/run/httpd.pid"
  81.  
  82. #
  83. # ScoreBoardFile: File used to store internal server process information.
  84. # Not all architectures require this.  But if yours does (you'll know because
  85. # this file will be  created when you run Apache) then you *must* ensure that
  86. # no two invocations of Apache share the same scoreboard file.
  87. #
  88. ScoreBoardFile "/private/var/run/httpd.scoreboard"
  89.  
  90. #
  91. # In the standard configuration, the server will process httpd.conf (this 
  92. # file, specified by the -f command line option), srm.conf, and access.conf 
  93. # in that order.  The latter two files are now distributed empty, as it is 
  94. # recommended that all directives be kept in a single file for simplicity.  
  95. # The commented-out values below are the built-in defaults.  You can have the 
  96. # server ignore these files altogether by using "/dev/null" (for Unix) or
  97. # "nul" (for Win32) for the arguments to the directives.
  98. #
  99. #ResourceConfig /private/etc/httpd/srm.conf
  100. #AccessConfig /private/etc/httpd/access.conf
  101.  
  102. #
  103. # Timeout: The number of seconds before receives and sends time out.
  104. #
  105. Timeout 300
  106.  
  107. #
  108. # KeepAlive: Whether or not to allow persistent connections (more than
  109. # one request per connection). Set to "Off" to deactivate.
  110. #
  111. KeepAlive On
  112.  
  113. #
  114. # MaxKeepAliveRequests: The maximum number of requests to allow
  115. # during a persistent connection. Set to 0 to allow an unlimited amount.
  116. # We recommend you leave this number high, for maximum performance.
  117. #
  118. MaxKeepAliveRequests 100
  119.  
  120. #
  121. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  122. # same client on the same connection.
  123. #
  124. KeepAliveTimeout 15
  125.  
  126. #
  127. # Server-pool size regulation.  Rather than making you guess how many
  128. # server processes you need, Apache dynamically adapts to the load it
  129. # sees --- that is, it tries to maintain enough server processes to
  130. # handle the current load, plus a few spare servers to handle transient
  131. # load spikes (e.g., multiple simultaneous requests from a single
  132. # Netscape browser).
  133. #
  134. # It does this by periodically checking how many servers are waiting
  135. # for a request.  If there are fewer than MinSpareServers, it creates
  136. # a new spare.  If there are more than MaxSpareServers, some of the
  137. # spares die off.  The default values are probably OK for most sites.
  138. #
  139. MinSpareServers 1
  140. MaxSpareServers 5
  141.  
  142. #
  143. # Number of servers to start initially --- should be a reasonable ballpark
  144. # figure.
  145. #
  146. StartServers 1
  147.  
  148. #
  149. # Limit on total number of servers running, i.e., limit on the number
  150. # of clients who can simultaneously connect --- if this limit is ever
  151. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
  152. # It is intended mainly as a brake to keep a runaway server from taking
  153. # the system with it as it spirals down...
  154. #
  155. MaxClients 150
  156.  
  157. #
  158. # MaxRequestsPerChild: the number of requests each child process is
  159. # allowed to process before the child dies.  The child will exit so
  160. # as to avoid problems after prolonged use when Apache (and maybe the
  161. # libraries it uses) leak memory or other resources.  On most systems, this
  162. # isn't really needed, but a few (such as Solaris) do have notable leaks
  163. # in the libraries. For these platforms, set to something like 10000
  164. # or so; a setting of 0 means unlimited.
  165. #
  166. # NOTE: This value does not include keepalive requests after the initial
  167. #       request per connection. For example, if a child process handles
  168. #       an initial request and 10 subsequent "keptalive" requests, it
  169. #       would only count as 1 request towards this limit.
  170. #
  171. MaxRequestsPerChild 100000
  172.  
  173. #
  174. # Listen: Allows you to bind Apache to specific IP addresses and/or
  175. # ports, instead of the default. See also the <VirtualHost>
  176. # directive.
  177. #
  178. #Listen 3000
  179. #Listen 12.34.56.78:80
  180.  
  181. #
  182. # BindAddress: You can support virtual hosts with this option. This directive
  183. # is used to tell the server which IP address to listen to. It can either
  184. # contain "*", an IP address, or a fully qualified Internet domain name.
  185. # See also the <VirtualHost> and Listen directives.
  186. #
  187. #BindAddress *
  188.  
  189. #
  190. # Dynamic Shared Object (DSO) Support
  191. #
  192. # To be able to use the functionality of a module which was built as a DSO you
  193. # have to place corresponding `LoadModule' lines at this location so the
  194. # directives contained in it are actually available _before_ they are used.
  195. # Please read the file http://httpd.apache.org/docs/dso.html for more
  196. # details about the DSO mechanism and run `httpd -l' for the list of already
  197. # built-in (statically linked and thus always available) modules in your httpd
  198. # binary.
  199. #
  200. # Note: The order in which modules are loaded is important.  Don't change
  201. # the order below without expert advice.
  202. #
  203. # Example:
  204. # LoadModule foo_module libexec/mod_foo.so
  205. #LoadModule vhost_alias_module libexec/httpd/mod_vhost_alias.so
  206. #LoadModule env_module         libexec/httpd/mod_env.so
  207. LoadModule config_log_module  libexec/httpd/mod_log_config.so
  208. #LoadModule mime_magic_module  libexec/httpd/mod_mime_magic.so
  209. LoadModule mime_module        libexec/httpd/mod_mime.so
  210. LoadModule negotiation_module libexec/httpd/mod_negotiation.so
  211. #LoadModule status_module      libexec/httpd/mod_status.so
  212. #LoadModule info_module        libexec/httpd/mod_info.so
  213. LoadModule includes_module    libexec/httpd/mod_include.so
  214. LoadModule autoindex_module   libexec/httpd/mod_autoindex.so
  215. LoadModule dir_module         libexec/httpd/mod_dir.so
  216. LoadModule cgi_module         libexec/httpd/mod_cgi.so
  217. LoadModule asis_module        libexec/httpd/mod_asis.so
  218. LoadModule imap_module        libexec/httpd/mod_imap.so
  219. LoadModule action_module      libexec/httpd/mod_actions.so
  220. #LoadModule speling_module     libexec/httpd/mod_speling.so
  221. LoadModule userdir_module     libexec/httpd/mod_userdir.so
  222. LoadModule alias_module       libexec/httpd/mod_alias.so
  223. LoadModule rewrite_module     libexec/httpd/mod_rewrite.so
  224. LoadModule access_module      libexec/httpd/mod_access.so
  225. LoadModule auth_module        libexec/httpd/mod_auth.so
  226. #LoadModule anon_auth_module   libexec/httpd/mod_auth_anon.so
  227. #LoadModule dbm_auth_module    libexec/httpd/mod_auth_dbm.so
  228. #LoadModule digest_module      libexec/httpd/mod_digest.so
  229. #LoadModule proxy_module       libexec/httpd/libproxy.so
  230. #LoadModule cern_meta_module   libexec/httpd/mod_cern_meta.so
  231. #LoadModule expires_module     libexec/httpd/mod_expires.so
  232. #LoadModule headers_module     libexec/httpd/mod_headers.so
  233. #LoadModule usertrack_module   libexec/httpd/mod_usertrack.so
  234. #LoadModule unique_id_module   libexec/httpd/mod_unique_id.so
  235. LoadModule setenvif_module    libexec/httpd/mod_setenvif.so
  236. #LoadModule dav_module         libexec/httpd/libdav.so
  237. #LoadModule ssl_module         libexec/httpd/libssl.so
  238. #LoadModule perl_module        libexec/httpd/libperl.so
  239. LoadModule php4_module        libexec/httpd/libphp4.so
  240. LoadModule hfs_apple_module   libexec/httpd/mod_hfs_apple.so
  241. LoadModule rendezvous_apple_module libexec/httpd/mod_rendezvous_apple.so
  242.  
  243. #  Reconstruction of the complete module list from all available modules
  244. #  (static and shared ones) to achieve correct module execution order.
  245. #  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
  246. ClearModuleList
  247. #AddModule mod_vhost_alias.c
  248. #AddModule mod_env.c
  249. AddModule mod_log_config.c
  250. #AddModule mod_mime_magic.c
  251. AddModule mod_mime.c
  252. AddModule mod_negotiation.c
  253. #AddModule mod_status.c
  254. #AddModule mod_info.c
  255. AddModule mod_include.c
  256. AddModule mod_autoindex.c
  257. AddModule mod_dir.c
  258. AddModule mod_cgi.c
  259. AddModule mod_asis.c
  260. AddModule mod_imap.c
  261. AddModule mod_actions.c
  262. #AddModule mod_speling.c
  263. AddModule mod_userdir.c
  264. AddModule mod_alias.c
  265. AddModule mod_rewrite.c
  266. AddModule mod_access.c
  267. AddModule mod_auth.c
  268. #AddModule mod_auth_anon.c
  269. #AddModule mod_auth_dbm.c
  270. #AddModule mod_digest.c
  271. #AddModule mod_proxy.c
  272. #AddModule mod_cern_meta.c
  273. #AddModule mod_expires.c
  274. #AddModule mod_headers.c
  275. #AddModule mod_usertrack.c
  276. #AddModule mod_unique_id.c
  277. AddModule mod_so.c
  278. AddModule mod_setenvif.c
  279. #AddModule mod_dav.c
  280. #AddModule mod_ssl.c
  281. #AddModule mod_perl.c
  282. AddModule mod_php4.c
  283. AddModule mod_hfs_apple.c
  284. AddModule mod_rendezvous_apple.c
  285.  
  286. #
  287. # ExtendedStatus controls whether Apache will generate "full" status
  288. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  289. # Off) when the "server-status" handler is called. The default is Off.
  290. #
  291. #ExtendedStatus On
  292.  
  293. ### Section 2: 'Main' server configuration
  294. #
  295. # The directives in this section set up the values used by the 'main'
  296. # server, which responds to any requests that aren't handled by a
  297. # <VirtualHost> definition.  These values also provide defaults for
  298. # any <VirtualHost> containers you may define later in the file.
  299. #
  300. # All of these directives may appear inside <VirtualHost> containers,
  301. # in which case these default settings will be overridden for the
  302. # virtual host being defined.
  303. #
  304.  
  305. #
  306. # If your ServerType directive (set earlier in the 'Global Environment'
  307. # section) is set to "inetd", the next few directives don't have any
  308. # effect since their settings are defined by the inetd configuration.
  309. # Skip ahead to the ServerAdmin directive.
  310. #
  311.  
  312. #
  313. # Port: The port to which the standalone server listens. For
  314. # ports < 1023, you will need httpd to be run as root initially.
  315. #
  316. Port 80
  317.  
  318. #
  319. # If you wish httpd to run as a different user or group, you must run
  320. # httpd as root initially and it will switch.  
  321. #
  322. # User/Group: The name (or #number) of the user/group to run httpd as.
  323. #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  324. #  . On HPUX you may not be able to use shared memory as nobody, and the
  325. #    suggested workaround is to create a user www and use that user.
  326. #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  327. #  when the value of (unsigned)Group is above 60000; 
  328. #  don't use Group "#-1" on these systems!
  329. #
  330. User www
  331. Group www
  332.  
  333. #
  334. # ServerAdmin: Your address, where problems with the server should be
  335. # e-mailed.  This address appears on some server-generated pages, such
  336. # as error documents.
  337. #
  338. #ServerAdmin webmaster@example.com
  339.  
  340. #
  341. # ServerName allows you to set a host name which is sent back to clients for
  342. # your server if it's different than the one the program would get (i.e., use
  343. # "www" instead of the host's real name).
  344. #
  345. # Note: You cannot just invent host names and hope they work. The name you 
  346. # define here must be a valid DNS name for your host. If you don't understand
  347. # this, ask your network administrator.
  348. # If your host doesn't have a registered DNS name, enter its IP address here.
  349. # You will have to access it by its address (e.g., http://123.45.67.89/)
  350. # anyway, and this will make redirections work in a sensible way.
  351. #
  352. # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
  353. # machine always knows itself by this address. If you use Apache strictly for 
  354. # local testing and development, you may use 127.0.0.1 as the server name.
  355. #
  356. #ServerName blaze
  357.  
  358. #
  359. # DocumentRoot: The directory out of which you will serve your
  360. # documents. By default, all requests are taken from this directory, but
  361. # symbolic links and aliases may be used to point to other locations.
  362. #
  363. DocumentRoot "/Library/WebServer/Documents"
  364.  
  365. #
  366. # Each directory to which Apache has access, can be configured with respect
  367. # to which services and features are allowed and/or disabled in that
  368. # directory (and its subdirectories). 
  369. #
  370. # First, we configure the "default" to be a very restrictive set of 
  371. # permissions.  
  372. #
  373. <Directory />
  374.     Options FollowSymLinks
  375.     AllowOverride None
  376. </Directory>
  377.  
  378. #
  379. # Note that from this point forward you must specifically allow
  380. # particular features to be enabled - so if something's not working as
  381. # you might expect, make sure that you have specifically enabled it
  382. # below.
  383. #
  384.  
  385. #
  386. # This should be changed to whatever you set DocumentRoot to.
  387. #
  388. <Directory "/Library/WebServer/Documents">
  389.  
  390. #
  391. # This may also be "None", "All", or any combination of "Indexes",
  392. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  393. #
  394. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  395. # doesn't give it to you.
  396. #
  397.     Options Indexes FollowSymLinks MultiViews
  398.  
  399. #
  400. # This controls which options the .htaccess files in directories can
  401. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  402. # "AuthConfig", and "Limit"
  403. #
  404.     AllowOverride None
  405.  
  406. #
  407. # Controls who can get stuff from this server.
  408. #
  409.     Order allow,deny
  410.     Allow from all
  411. </Directory>
  412.  
  413. #
  414. # UserDir: The name of the directory which is appended onto a user's home
  415. # directory if a ~user request is received.
  416. #
  417. <IfModule mod_userdir.c>
  418.     UserDir Sites
  419. </IfModule>
  420.  
  421. #
  422. # Control access to UserDir directories.  The following is an example
  423. # for a site where these directories are restricted to read-only.
  424. #
  425. #<Directory /Users/*/Sites>
  426. #    AllowOverride FileInfo AuthConfig Limit
  427. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  428. #    <Limit GET POST OPTIONS PROPFIND>
  429. #        Order allow,deny
  430. #        Allow from all
  431. #    </Limit>
  432. #    <LimitExcept GET POST OPTIONS PROPFIND>
  433. #        Order deny,allow
  434. #        Deny from all
  435. #    </LimitExcept>
  436. #</Directory>
  437.  
  438. #
  439. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  440. # directory index.  Separate multiple entries with spaces.
  441. #
  442. <IfModule mod_dir.c>
  443.     DirectoryIndex index.html
  444. </IfModule>
  445.  
  446. #
  447. # AccessFileName: The name of the file to look for in each directory
  448. # for access control information.
  449. #
  450. AccessFileName .htaccess
  451.  
  452. #
  453. # The following lines prevent .htaccess files from being viewed by
  454. # Web clients.  Since .htaccess files often contain authorization
  455. # information, access is disallowed for security reasons.  Comment
  456. # these lines out if you want Web visitors to see the contents of
  457. # .htaccess files.  If you change the AccessFileName directive above,
  458. # be sure to make the corresponding changes here.
  459. #
  460. # Also, folks tend to use names such as .htpasswd for password
  461. # files, so this will protect those as well.
  462. #
  463. <Files ~ "^\.ht">
  464.     Order allow,deny
  465.     Deny from all
  466.     Satisfy All
  467. </Files>
  468.  
  469. #
  470. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  471. # document that was negotiated on the basis of content. This asks proxy
  472. # servers not to cache the document. Uncommenting the following line disables
  473. # this behavior, and proxies will be allowed to cache the documents.
  474. #
  475. #CacheNegotiatedDocs
  476.  
  477. #
  478. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  479. # Apache needs to construct a self-referencing URL (a URL that refers back
  480. # to the server the response is coming from) it will use ServerName and
  481. # Port to form a "canonical" name.  With this setting off, Apache will
  482. # use the hostname:port that the client supplied, when possible.  This
  483. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  484. #
  485. UseCanonicalName On
  486.  
  487. #
  488. # TypesConfig describes where the mime.types file (or equivalent) is
  489. # to be found.
  490. #
  491. <IfModule mod_mime.c>
  492.     TypesConfig /private/etc/httpd/mime.types
  493. </IfModule>
  494.  
  495. #
  496. # DefaultType is the default MIME type the server will use for a document
  497. # if it cannot otherwise determine one, such as from filename extensions.
  498. # If your server contains mostly text or HTML documents, "text/plain" is
  499. # a good value.  If most of your content is binary, such as applications
  500. # or images, you may want to use "application/octet-stream" instead to
  501. # keep browsers from trying to display binary files as though they are
  502. # text.
  503. #
  504. DefaultType text/plain
  505.  
  506. #
  507. # The mod_mime_magic module allows the server to use various hints from the
  508. # contents of the file itself to determine its type.  The MIMEMagicFile
  509. # directive tells the module where the hint definitions are located.
  510. # mod_mime_magic is not part of the default server (you have to add
  511. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  512. # Environment' section], or recompile the server and include mod_mime_magic
  513. # as part of the configuration), so it's enclosed in an <IfModule> container.
  514. # This means that the MIMEMagicFile directive will only be processed if the
  515. # module is part of the server.
  516. #
  517. <IfModule mod_mime_magic.c>
  518.     MIMEMagicFile /private/etc/httpd/magic
  519. </IfModule>
  520.  
  521. #
  522. # HostnameLookups: Log the names of clients or just their IP addresses
  523. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  524. # The default is off because it'd be overall better for the net if people
  525. # had to knowingly turn this feature on, since enabling it means that
  526. # each client request will result in AT LEAST one lookup request to the
  527. # nameserver.
  528. #
  529. HostnameLookups Off
  530.  
  531. #
  532. # ErrorLog: The location of the error log file.
  533. # If you do not specify an ErrorLog directive within a <VirtualHost>
  534. # container, error messages relating to that virtual host will be
  535. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  536. # container, that host's errors will be logged there and not here.
  537. #
  538. ErrorLog "/private/var/log/httpd/error_log"
  539.  
  540. #
  541. # LogLevel: Control the number of messages logged to the error_log.
  542. # Possible values include: debug, info, notice, warn, error, crit,
  543. # alert, emerg.
  544. #
  545. LogLevel warn
  546.  
  547. #
  548. # The following directives define some format nicknames for use with
  549. # a CustomLog directive (see below).
  550. #
  551. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  552. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  553. LogFormat "%{Referer}i -> %U" referer
  554. LogFormat "%{User-agent}i" agent
  555.  
  556. #
  557. # The location and format of the access logfile (Common Logfile Format).
  558. # If you do not define any access logfiles within a <VirtualHost>
  559. # container, they will be logged here.  Contrariwise, if you *do*
  560. # define per-<VirtualHost> access logfiles, transactions will be
  561. # logged therein and *not* in this file.
  562. #
  563. CustomLog "/private/var/log/httpd/access_log" common
  564.  
  565. #
  566. # If you would like to have agent and referer logfiles, uncomment the
  567. # following directives.
  568. #
  569. #CustomLog "/private/var/log/httpd/referer_log" referer
  570. #CustomLog "/private/var/log/httpd/agent_log" agent
  571.  
  572. #
  573. # If you prefer a single logfile with access, agent, and referer information
  574. # (Combined Logfile Format) you can use the following directive.
  575. #
  576. #CustomLog "/private/var/log/httpd/access_log" combined
  577.  
  578. #
  579. # Optionally add a line containing the server version and virtual host
  580. # name to server-generated pages (error documents, FTP directory listings,
  581. # mod_status and mod_info output etc., but not CGI generated documents).
  582. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  583. # Set to one of:  On | Off | EMail
  584. #
  585. ServerSignature On
  586.  
  587. # EBCDIC configuration:
  588. # (only for mainframes using the EBCDIC codeset, currently one of:
  589. # Fujitsu-Siemens' BS2000/OSD, IBM's OS/390 and IBM's TPF)!!
  590. # The following default configuration assumes that "text files"
  591. # are stored in EBCDIC (so that you can operate on them using the
  592. # normal POSIX tools like grep and sort) while "binary files" are
  593. # stored with identical octets as on an ASCII machine.
  594. #
  595. # The directives are evaluated in configuration file order, with
  596. # the EBCDICConvert directives applied before EBCDICConvertByType.
  597. #
  598. # If you want to have ASCII HTML documents and EBCDIC HTML documents
  599. # at the same time, you can use the file extension to force
  600. # conversion off for the ASCII documents:
  601. # > AddType       text/html .ahtml
  602. # > EBCDICConvert Off=InOut .ahtml
  603. #
  604. # EBCDICConvertByType  On=InOut text/* message/* multipart/*
  605. # EBCDICConvertByType  On=In    application/x-www-form-urlencoded
  606. # EBCDICConvertByType  On=InOut application/postscript model/vrml
  607. # EBCDICConvertByType Off=InOut */*
  608.  
  609.  
  610. #
  611. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  612. # Alias fakename realname
  613. #
  614. <IfModule mod_alias.c>
  615.  
  616.     #
  617.     # Note that if you include a trailing / on fakename then the server will
  618.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  619.     # example, only "/icons/".  If the fakename is slash-terminated, then the 
  620.     # realname must also be slash terminated, and if the fakename omits the 
  621.     # trailing slash, the realname must also omit it.
  622.     #
  623.     Alias /icons/ "/usr/share/httpd/icons/"
  624.  
  625.     <Directory "/usr/share/httpd/icons">
  626.         Options Indexes MultiViews
  627.         AllowOverride None
  628.         Order allow,deny
  629.         Allow from all
  630.     </Directory>
  631.  
  632.     # This Alias will project the on-line documentation tree under /manual/
  633.     # even if you change the DocumentRoot. Comment it if you don't want to 
  634.     # provide access to the on-line documentation.
  635.     #
  636.     Alias /manual/ "/Library/WebServer/Documents/manual/"
  637.  
  638.     <Directory "/Library/WebServer/Documents/manual">
  639.         Options Indexes FollowSymlinks MultiViews
  640.         AllowOverride None
  641.         Order allow,deny
  642.         Allow from all
  643.     </Directory>
  644.  
  645.     #
  646.     # ScriptAlias: This controls which directories contain server scripts.
  647.     # ScriptAliases are essentially the same as Aliases, except that
  648.     # documents in the realname directory are treated as applications and
  649.     # run by the server when requested rather than as documents sent to the client.
  650.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  651.     # Alias.
  652.     #
  653.     ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
  654.  
  655.     #
  656.     # "/Library/WebServer/CGI-Executables" should be changed to whatever your ScriptAliased
  657.     # CGI directory exists, if you have that configured.
  658.     #
  659.     <Directory "/Library/WebServer/CGI-Executables">
  660.         AllowOverride None
  661.         Options None
  662.         Order allow,deny
  663.         Allow from all
  664.     </Directory>
  665.  
  666. </IfModule>
  667. # End of aliases.
  668.  
  669. #
  670. # Redirect allows you to tell clients about documents which used to exist in
  671. # your server's namespace, but do not anymore. This allows you to tell the
  672. # clients where to look for the relocated document.
  673. # Format: Redirect old-URI new-URL
  674. #
  675.  
  676. #
  677. # Directives controlling the display of server-generated directory listings.
  678. #
  679. <IfModule mod_autoindex.c>
  680.  
  681.     #
  682.     # FancyIndexing is whether you want fancy directory indexing or standard
  683.     #
  684.     IndexOptions FancyIndexing
  685.  
  686.     #
  687.     # AddIcon* directives tell the server which icon to show for different
  688.     # files or filename extensions.  These are only displayed for
  689.     # FancyIndexed directories.
  690.     #
  691.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  692.  
  693.     AddIconByType (TXT,/icons/text.gif) text/*
  694.     AddIconByType (IMG,/icons/image2.gif) image/*
  695.     AddIconByType (SND,/icons/sound2.gif) audio/*
  696.     AddIconByType (VID,/icons/movie.gif) video/*
  697.  
  698.     AddIcon /icons/binary.gif .bin .exe
  699.     AddIcon /icons/binhex.gif .hqx
  700.     AddIcon /icons/tar.gif .tar
  701.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  702.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  703.     AddIcon /icons/a.gif .ps .ai .eps
  704.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  705.     AddIcon /icons/text.gif .txt
  706.     AddIcon /icons/c.gif .c
  707.     AddIcon /icons/p.gif .pl .py
  708.     AddIcon /icons/f.gif .for
  709.     AddIcon /icons/dvi.gif .dvi
  710.     AddIcon /icons/uuencoded.gif .uu
  711.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  712.     AddIcon /icons/tex.gif .tex
  713.     AddIcon /icons/bomb.gif core
  714.  
  715.     AddIcon /icons/back.gif ..
  716.     AddIcon /icons/hand.right.gif README
  717.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  718.     AddIcon /icons/blank.gif ^^BLANKICON^^
  719.  
  720.     #
  721.     # DefaultIcon is which icon to show for files which do not have an icon
  722.     # explicitly set.
  723.     #
  724.     DefaultIcon /icons/unknown.gif
  725.  
  726.     #
  727.     # AddDescription allows you to place a short description after a file in
  728.     # server-generated indexes.  These are only displayed for FancyIndexed
  729.     # directories.
  730.     # Format: AddDescription "description" filename
  731.     #
  732.     #AddDescription "GZIP compressed document" .gz
  733.     #AddDescription "tar archive" .tar
  734.     #AddDescription "GZIP compressed tar archive" .tgz
  735.  
  736.     #
  737.     # ReadmeName is the name of the README file the server will look for by
  738.     # default, and append to directory listings.
  739.     #
  740.     # HeaderName is the name of a file which should be prepended to
  741.     # directory indexes. 
  742.     #
  743.     ReadmeName README
  744.     HeaderName HEADER
  745.  
  746.     #
  747.     # IndexIgnore is a set of filenames which directory indexing should ignore
  748.     # and not include in the listing.  Shell-style wildcarding is permitted.
  749.     #
  750.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  751.  
  752. </IfModule>
  753. # End of indexing directives.
  754.  
  755. #
  756. # Document types.
  757. #
  758. <IfModule mod_mime.c>
  759.  
  760.     #
  761.     # AddLanguage allows you to specify the language of a document. You can
  762.     # then use content negotiation to give a browser a file in a language
  763.     # it can understand.  
  764.     #
  765.     # Note 1: The suffix does not have to be the same as the language 
  766.     # keyword --- those with documents in Polish (whose net-standard 
  767.     # language code is pl) may wish to use "AddLanguage pl .po" to 
  768.     # avoid the ambiguity with the common suffix for perl scripts.
  769.     #
  770.     # Note 2: The example entries below illustrate that in quite
  771.     # some cases the two character 'Language' abbreviation is not
  772.     # identical to the two character 'Country' code for its country,
  773.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  774.     #
  775.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char 
  776.     # specifier. But there is 'work in progress' to fix this and get 
  777.     # the reference data for rfc1766 cleaned up.
  778.     #
  779.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  780.     # French (fr) - German (de) - Greek-Modern (el)
  781.     # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
  782.     # Portugese (pt) - Luxembourgeois* (ltz)
  783.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
  784.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  785.     # Russian (ru)
  786.     #
  787.     AddLanguage da .dk
  788.     AddLanguage nl .nl
  789.     AddLanguage en .en
  790.     AddLanguage et .ee
  791.     AddLanguage fr .fr
  792.     AddLanguage de .de
  793.     AddLanguage el .el
  794.     AddLanguage he .he
  795.     AddCharset ISO-8859-8 .iso8859-8
  796.     AddLanguage it .it
  797.     AddLanguage ja .ja
  798.     AddCharset ISO-2022-JP .jis
  799.     AddLanguage kr .kr
  800.     AddCharset ISO-2022-KR .iso-kr
  801.     AddLanguage nn .nn
  802.     AddLanguage no .no
  803.     AddLanguage pl .po
  804.     AddCharset ISO-8859-2 .iso-pl
  805.     AddLanguage pt .pt
  806.     AddLanguage pt-br .pt-br
  807.     AddLanguage ltz .lu
  808.     AddLanguage ca .ca
  809.     AddLanguage es .es
  810.     AddLanguage sv .sv
  811.     AddLanguage cs .cz .cs
  812.     AddLanguage ru .ru
  813.     AddLanguage zh-TW .zh-tw
  814.     AddCharset Big5         .Big5    .big5
  815.     AddCharset WINDOWS-1251 .cp-1251
  816.     AddCharset CP866        .cp866
  817.     AddCharset ISO-8859-5   .iso-ru
  818.     AddCharset KOI8-R       .koi8-r
  819.     AddCharset UCS-2        .ucs2
  820.     AddCharset UCS-4        .ucs4
  821.     AddCharset UTF-8        .utf8
  822.  
  823.     # LanguagePriority allows you to give precedence to some languages
  824.     # in case of a tie during content negotiation.
  825.     #
  826.     # Just list the languages in decreasing order of preference. We have
  827.     # more or less alphabetized them here. You probably want to change this.
  828.     #
  829.     <IfModule mod_negotiation.c>
  830.         LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
  831.     </IfModule>
  832.  
  833.     #
  834.     # AddType allows you to tweak mime.types without actually editing it, or to
  835.     # make certain files to be certain types.
  836.     #
  837.     AddType application/x-tar .tgz
  838.  
  839.     #
  840.     # AddEncoding allows you to have certain browsers uncompress
  841.     # information on the fly. Note: Not all browsers support this.
  842.     # Despite the name similarity, the following Add* directives have nothing
  843.     # to do with the FancyIndexing customization directives above.
  844.     #
  845.     AddEncoding x-compress .Z
  846.     AddEncoding x-gzip .gz .tgz
  847.     #
  848.     # If the AddEncoding directives above are commented-out, then you
  849.     # probably should define those extensions to indicate media types:
  850.     #
  851.     #AddType application/x-compress .Z
  852.     #AddType application/x-gzip .gz .tgz
  853.  
  854.     #
  855.     # AddHandler allows you to map certain file extensions to "handlers",
  856.     # actions unrelated to filetype. These can be either built into the server
  857.     # or added with the Action command (see below)
  858.     #
  859.     # If you want to use server side includes, or CGI outside
  860.     # ScriptAliased directories, uncomment the following lines.
  861.     #
  862.     # To use CGI scripts:
  863.     #
  864.     #AddHandler cgi-script .cgi
  865.  
  866.     #
  867.     # To use server-parsed HTML files
  868.     #
  869.     #AddType text/html .shtml
  870.     #AddHandler server-parsed .shtml
  871.  
  872.     #
  873.     # Uncomment the following line to enable Apache's send-asis HTTP file
  874.     # feature
  875.     #
  876.     #AddHandler send-as-is asis
  877.  
  878.     #
  879.     # If you wish to use server-parsed imagemap files, use
  880.     #
  881.     #AddHandler imap-file map
  882.  
  883.     #
  884.     # To enable type maps, you might want to use
  885.     #
  886.     #AddHandler type-map var
  887.  
  888. </IfModule>
  889. # End of document types.
  890.  
  891. #
  892. # Action lets you define media types that will execute a script whenever
  893. # a matching file is called. This eliminates the need for repeated URL
  894. # pathnames for oft-used CGI file processors.
  895. # Format: Action media/type /cgi-script/location
  896. # Format: Action handler-name /cgi-script/location
  897. #
  898.  
  899. #
  900. # MetaDir: specifies the name of the directory in which Apache can find
  901. # meta information files. These files contain additional HTTP headers
  902. # to include when sending the document
  903. #
  904. #MetaDir .web
  905.  
  906. #
  907. # MetaSuffix: specifies the file name suffix for the file containing the
  908. # meta information.
  909. #
  910. #MetaSuffix .meta
  911.  
  912. #
  913. # Customizable error response (Apache style)
  914. #  these come in three flavors
  915. #
  916. #    1) plain text
  917. #ErrorDocument 500 "The server made a boo boo.
  918. #  n.b.  the single leading (") marks it as text, it does not get output
  919. #
  920. #    2) local redirects
  921. #ErrorDocument 404 /missing.html
  922. #  to redirect to local URL /missing.html
  923. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  924. #  N.B.: You can redirect to a script or a document using server-side-includes.
  925. #
  926. #    3) external redirects
  927. #ErrorDocument 402 http://some.other-server.com/subscription_info.html
  928. #  N.B.: Many of the environment variables associated with the original
  929. #  request will *not* be available to such a script.
  930.  
  931. #
  932. # Customize behaviour based on the browser
  933. #
  934. <IfModule mod_setenvif.c>
  935.  
  936.     #
  937.     # The following directives modify normal HTTP response behavior.
  938.     # The first directive disables keepalive for Netscape 2.x and browsers that
  939.     # spoof it. There are known problems with these browser implementations.
  940.     # The second directive is for Microsoft Internet Explorer 4.0b2
  941.     # which has a broken HTTP/1.1 implementation and does not properly
  942.     # support keepalive when it is used on 301 or 302 (redirect) responses.
  943.     #
  944.     BrowserMatch "Mozilla/2" nokeepalive
  945.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  946.  
  947.     #
  948.     # The following directive disables HTTP/1.1 responses to browsers which
  949.     # are in violation of the HTTP/1.0 spec by not being able to grok a
  950.     # basic 1.1 response.
  951.     #
  952.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  953.     BrowserMatch "Java/1\.0" force-response-1.0
  954.     BrowserMatch "JDK/1\.0" force-response-1.0
  955.  
  956. </IfModule>
  957. # End of browser customization directives
  958.  
  959. #
  960. # Allow server status reports, with the URL of http://servername/server-status
  961. # Change the ".your-domain.com" to match your domain to enable.
  962. #
  963. #<Location /server-status>
  964. #    SetHandler server-status
  965. #    Order deny,allow
  966. #    Deny from all
  967. #    Allow from .your-domain.com
  968. #</Location>
  969.  
  970. #
  971. # Allow remote server configuration reports, with the URL of
  972. # http://servername/server-info (requires that mod_info.c be loaded).
  973. # Change the ".your-domain.com" to match your domain to enable.
  974. #
  975. #<Location /server-info>
  976. #    SetHandler server-info
  977. #    Order deny,allow
  978. #    Deny from all
  979. #    Allow from .your-domain.com
  980. #</Location>
  981.  
  982. #
  983. # There have been reports of people trying to abuse an old bug from pre-1.1
  984. # days.  This bug involved a CGI script distributed as a part of Apache.
  985. # By uncommenting these lines you can redirect these attacks to a logging 
  986. # script on phf.apache.org.  Or, you can record them yourself, using the script
  987. # support/phf_abuse_log.cgi.
  988. #
  989. #<Location /cgi-bin/phf*>
  990. #    Deny from all
  991. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  992. #</Location>
  993.  
  994. #
  995. # Proxy Server directives. Uncomment the following lines to
  996. # enable the proxy server:
  997. #
  998. #<IfModule mod_proxy.c>
  999. #    ProxyRequests On
  1000.  
  1001. #    <Directory proxy:*>
  1002. #        Order deny,allow
  1003. #        Deny from all
  1004. #        Allow from .your-domain.com
  1005. #    </Directory>
  1006.  
  1007.     #
  1008.     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  1009.     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  1010.     # Set to one of: Off | On | Full | Block
  1011.     #
  1012. #    ProxyVia On
  1013.  
  1014.     #
  1015.     # To enable the cache as well, edit and uncomment the following lines:
  1016.     # (no cacheing without CacheRoot)
  1017.     #
  1018. #    CacheRoot "/private/var/run/proxy"
  1019. #    CacheSize 5
  1020. #    CacheGcInterval 4
  1021. #    CacheMaxExpire 24
  1022. #    CacheLastModifiedFactor 0.1
  1023. #    CacheDefaultExpire 1
  1024. #    NoCache a-domain.com another-domain.edu joes.garage-sale.com
  1025.  
  1026. #</IfModule>
  1027. # End of proxy directives.
  1028.  
  1029. ### Section 3: Virtual Hosts
  1030. #
  1031. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  1032. # machine you can setup VirtualHost containers for them. Most configurations
  1033. # use only name-based virtual hosts so the server doesn't need to worry about
  1034. # IP addresses. This is indicated by the asterisks in the directives below.
  1035. #
  1036. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  1037. # for further details before you try to setup virtual hosts.
  1038. #
  1039. # You may use the command line option '-S' to verify your virtual host
  1040. # configuration.
  1041.  
  1042. #
  1043. # Use name-based virtual hosting.
  1044. #
  1045. #NameVirtualHost *:80
  1046.  
  1047. #
  1048. # VirtualHost example:
  1049. # Almost any Apache directive may go into a VirtualHost container.
  1050. # The first VirtualHost section is used for requests without a known
  1051. # server name.
  1052. #
  1053. #<VirtualHost *:80>
  1054. #    ServerAdmin webmaster@dummy-host.example.com
  1055. #    DocumentRoot /www/docs/dummy-host.example.com
  1056. #    ServerName dummy-host.example.com
  1057. #    ErrorLog logs/dummy-host.example.com-error_log
  1058. #    CustomLog logs/dummy-host.example.com-access_log common
  1059. #</VirtualHost>
  1060.  
  1061. <IfModule mod_php4.c>
  1062.     # If php is turned on, we repsect .php and .phps files.
  1063.     AddType application/x-httpd-php .php
  1064.     AddType application/x-httpd-php-source .phps
  1065.  
  1066.     # Since most users will want index.php to work we
  1067.     # also automatically enable index.php
  1068.     <IfModule mod_dir.c>
  1069.         DirectoryIndex index.html index.php
  1070.     </IfModule>
  1071. </IfModule>
  1072.  
  1073. <IfModule mod_rewrite.c>
  1074.     RewriteEngine On
  1075.     RewriteCond %{REQUEST_METHOD} ^TRACE
  1076.     RewriteRule .* - [F]
  1077. </IfModule>
  1078.  
  1079. <IfModule mod_rendezvous_apple.c>
  1080.     # Only the pages of users who have edited their
  1081.     # default home pages will be advertised on Rendezvous.
  1082.     RegisterUserSite customized-users
  1083.     #RegisterUserSite all-users
  1084.  
  1085.     # Rendezvous advertising for the primary site is off by default.
  1086.     #RegisterDefaultSite
  1087. </IfModule>
  1088.  
  1089. Include /private/etc/httpd/users/*.conf
  1090.