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