home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 October / Chip_2002-10_cd1.bin / zkuste / php / aplikace / httpd.conf < prev    next >
Text File  |  2002-08-21  |  37KB  |  1,026 lines

  1. #
  2. # Based upon the NCSA server configuration files originally by Rob McCool.
  3. #
  4. # This is the main Apache server configuration file.  It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://www.apache.org/docs/> for detailed information about
  7. # the directives.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do.  They're here only as hints or reminders.  If you are unsure
  11. # consult the online docs. You have been warned.  
  12. #
  13. # After this file is processed, the server will look for and process
  14. # C:/Apache/Apache/conf/srm.conf and then C:/Apache/Apache/conf/access.conf
  15. # unless you have overridden these with ResourceConfig and/or
  16. # AccessConfig directives here.
  17. #
  18. # The configuration directives are grouped into three basic sections:
  19. #  1. Directives that control the operation of the Apache server process as a
  20. #     whole (the 'global environment').
  21. #  2. Directives that define the parameters of the 'main' or 'default' server,
  22. #     which responds to requests that aren't handled by a virtual host.
  23. #     These directives also provide default values for the settings
  24. #     of all virtual hosts.
  25. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  26. #     different IP addresses or hostnames and have them handled by the
  27. #     same Apache server process.
  28. #
  29. # Configuration and logfile names: If the filenames you specify for many
  30. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  31. # server will use that explicit path.  If the filenames do *not* begin
  32. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  33. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  34. # server as "/usr/local/apache/logs/foo.log".
  35. #
  36. # NOTE: Where filenames are specified, you must use forward slashes
  37. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  38. # If a drive letter is omitted, the drive on which Apache.exe is located
  39. # will be used by default.  It is recommended that you always supply
  40. # an explicit drive letter in absolute paths, however, to avoid
  41. # confusion.
  42. #
  43.  
  44. ### Section 1: Global Environment
  45. #
  46. # The directives in this section affect the overall operation of Apache,
  47. # such as the number of concurrent requests it can handle or where it
  48. # can find its configuration files.
  49. #
  50.  
  51. #
  52. # ServerType is either inetd, or standalone.  Inetd mode is only supported on
  53. # Unix platforms.
  54. #
  55. ServerType standalone
  56.  
  57. #
  58. # ServerRoot: The top of the directory tree under which the server's
  59. # configuration, error, and log files are kept.
  60. #
  61. ServerRoot "C:/Apache/Apache"
  62.  
  63. #
  64. # PidFile: The file in which the server should record its process
  65. # identification number when it starts.
  66. #
  67. PidFile logs/httpd.pid
  68.  
  69. #
  70. # ScoreBoardFile: File used to store internal server process information.
  71. # Not all architectures require this.  But if yours does (you'll know because
  72. # this file will be  created when you run Apache) then you *must* ensure that
  73. # no two invocations of Apache share the same scoreboard file.
  74. #
  75. ScoreBoardFile logs/apache_runtime_status
  76.  
  77. #
  78. # In the standard configuration, the server will process httpd.conf (this 
  79. # file, specified by the -f command line option), srm.conf, and access.conf 
  80. # in that order.  The latter two files are now distributed empty, as it is 
  81. # recommended that all directives be kept in a single file for simplicity.  
  82. # The commented-out values below are the built-in defaults.  You can have the 
  83. # server ignore these files altogether by using "/dev/null" (for Unix) or
  84. # "nul" (for Win32) for the arguments to the directives.
  85. #
  86. #ResourceConfig conf/srm.conf
  87. #AccessConfig conf/access.conf
  88.  
  89. #
  90. # Timeout: The number of seconds before receives and sends time out.
  91. #
  92. Timeout 300
  93.  
  94. #
  95. # KeepAlive: Whether or not to allow persistent connections (more than
  96. # one request per connection). Set to "Off" to deactivate.
  97. #
  98. KeepAlive On
  99.  
  100. #
  101. # MaxKeepAliveRequests: The maximum number of requests to allow
  102. # during a persistent connection. Set to 0 to allow an unlimited amount.
  103. # We recommend you leave this number high, for maximum performance.
  104. #
  105. MaxKeepAliveRequests 100
  106.  
  107. #
  108. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  109. # same client on the same connection.
  110. #
  111. KeepAliveTimeout 15
  112.  
  113. #
  114. # Apache on Win32 always creates one child process to handle requests.  If it
  115. # dies, another child process is created automatically.  Within the child
  116. # process multiple threads handle incoming requests.  The next two
  117. # directives control the behaviour of the threads and processes.
  118. #
  119.  
  120. #
  121. # MaxRequestsPerChild: the number of requests each child process is
  122. # allowed to process before the child dies.  The child will exit so
  123. # as to avoid problems after prolonged use when Apache (and maybe the
  124. # libraries it uses) leak memory or other resources.  On most systems, this
  125. # isn't really needed, but a few (such as Solaris) do have notable leaks
  126. # in the libraries.  For Win32, set this value to zero (unlimited)
  127. # unless advised otherwise.
  128. #
  129. # NOTE: This value does not include keepalive requests after the initial
  130. #       request per connection. For example, if a child process handles
  131. #       an initial request and 10 subsequent "keptalive" requests, it
  132. #       would only count as 1 request towards this limit.
  133. #
  134. MaxRequestsPerChild 0
  135.  
  136. #
  137. # Number of concurrent threads (i.e., requests) the server will allow.
  138. # Set this value according to the responsiveness of the server (more
  139. # requests active at once means they're all handled more slowly) and
  140. # the amount of system resources you'll allow the server to consume.
  141. #
  142. ThreadsPerChild 50
  143.  
  144. #
  145. # Listen: Allows you to bind Apache to specific IP addresses and/or
  146. # ports, in addition to the default. See also the <VirtualHost>
  147. # directive.
  148. #
  149. #Listen 3000
  150. #Listen 12.34.56.78:80
  151.  
  152. #
  153. # BindAddress: You can support virtual hosts with this option. This directive
  154. # is used to tell the server which IP address to listen to. It can either
  155. # contain "*", an IP address, or a fully qualified Internet domain name.
  156. # See also the <VirtualHost> and Listen directives.
  157. #
  158. #BindAddress *
  159.  
  160. #
  161. # Dynamic Shared Object (DSO) Support
  162. #
  163. # To be able to use the functionality of a module which was built as a DSO you
  164. # have to place corresponding `LoadModule' lines at this location so the
  165. # directives contained in it are actually available _before_ they are used.
  166. # Please read the file README.DSO in the Apache 1.3 distribution for more
  167. # details about the DSO mechanism and run `apache -l' for the list of already
  168. # built-in (statically linked and thus always available) modules in your Apache
  169. # binary.
  170. #
  171. # Note: The order in which modules are loaded is important.  Don't change
  172. # the order below without expert advice.
  173. #
  174. # Example:
  175. # LoadModule foo_module modules/mod_foo.so
  176. #
  177. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  178. #LoadModule mime_magic_module modules/mod_mime_magic.so
  179. #LoadModule status_module modules/mod_status.so
  180. #LoadModule info_module modules/mod_info.so
  181. #LoadModule speling_module modules/mod_speling.so
  182. #LoadModule rewrite_module modules/mod_rewrite.so
  183. #LoadModule anon_auth_module modules/mod_auth_anon.so
  184. #LoadModule dbm_auth_module modules/mod_auth_dbm.so
  185. #LoadModule digest_auth_module modules/mod_auth_digest.so
  186. #LoadModule digest_module modules/mod_digest.so
  187. #LoadModule proxy_module modules/mod_proxy.so
  188. #LoadModule cern_meta_module modules/mod_cern_meta.so
  189. #LoadModule expires_module modules/mod_expires.so
  190. #LoadModule headers_module modules/mod_headers.so
  191. #LoadModule usertrack_module modules/mod_usertrack.so
  192. #LoadModule unique_id_module modules/mod_unique_id.so
  193.  
  194. #
  195. #  Reconstruction of the complete module list from all available modules
  196. #  (static and shared ones) to achieve correct module execution order.
  197. #
  198. # The modules listed below, without a corresponding LoadModule directive,
  199. # are static bound into the standard Apache binary distribution for Windows.
  200. #
  201. # Note: The order in which modules are loaded is important.  Don't change
  202. # the order below without expert advice.
  203. #
  204. # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
  205. ClearModuleList
  206. #AddModule mod_vhost_alias.c
  207. AddModule mod_env.c
  208. AddModule mod_log_config.c
  209. #AddModule mod_mime_magic.c
  210. AddModule mod_mime.c
  211. AddModule mod_negotiation.c
  212. #AddModule mod_status.c
  213. #AddModule mod_info.c
  214. AddModule mod_include.c
  215. AddModule mod_autoindex.c
  216. AddModule mod_dir.c
  217. AddModule mod_isapi.c
  218. AddModule mod_cgi.c
  219. AddModule mod_asis.c
  220. AddModule mod_imap.c
  221. AddModule mod_actions.c
  222. #AddModule mod_speling.c
  223. AddModule mod_userdir.c
  224. AddModule mod_alias.c
  225. #AddModule mod_rewrite.c
  226. AddModule mod_access.c
  227. AddModule mod_auth.c
  228. #AddModule mod_auth_anon.c
  229. #AddModule mod_auth_dbm.c
  230. #AddModule mod_auth_digest.c
  231. #AddModule mod_digest.c
  232. #AddModule mod_proxy.c
  233. #AddModule mod_cern_meta.c
  234. #AddModule mod_expires.c
  235. #AddModule mod_headers.c
  236. #AddModule mod_usertrack.c
  237. #AddModule mod_unique_id.c
  238. AddModule mod_so.c
  239. AddModule mod_setenvif.c
  240.  
  241.  
  242. #
  243. # ExtendedStatus controls whether Apache will generate "full" status
  244. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  245. # Off) when the "server-status" handler is called. The default is Off.
  246. #
  247. #ExtendedStatus On
  248.  
  249. ### Section 2: 'Main' server configuration
  250. #
  251. # The directives in this section set up the values used by the 'main'
  252. # server, which responds to any requests that aren't handled by a
  253. # <VirtualHost> definition.  These values also provide defaults for
  254. # any <VirtualHost> containers you may define later in the file.
  255. #
  256. # All of these directives may appear inside <VirtualHost> containers,
  257. # in which case these default settings will be overridden for the
  258. # virtual host being defined.
  259. #
  260.  
  261. #
  262. # Port: The port to which the standalone server listens.  Certain firewall
  263. # products must be configured before Apache can listen to a specific port.
  264. # Other running httpd servers will also interfere with this port.  Disable
  265. # all firewall, security, and other services if you encounter problems.
  266. # To help diagnose problems use the Windows NT command NETSTAT -a
  267. #
  268. Port 80
  269.  
  270. #
  271. # ServerAdmin: Your address, where problems with the server should be
  272. # e-mailed.  This address appears on some server-generated pages, such
  273. # as error documents.
  274. #
  275. ServerAdmin admin@localhost
  276.  
  277. #
  278. # ServerName allows you to set a host name which is sent back to clients for
  279. # your server if it's different than the one the program would get (i.e., use
  280. # "www" instead of the host's real name).
  281. #
  282. # Note: You cannot just invent host names and hope they work. The name you 
  283. # define here must be a valid DNS name for your host. If you don't understand
  284. # this, ask your network administrator.
  285. # If your host doesn't have a registered DNS name, enter its IP address here.
  286. # You will have to access it by its address (e.g., http://123.45.67.89/)
  287. # anyway, and this will make redirections work in a sensible way.
  288. #
  289. # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
  290. # machine always knows itself by this address. If you use Apache strictly for 
  291. # local testing and development, you may use 127.0.0.1 as the server name.
  292. #
  293. ServerName localhost
  294.  
  295.  
  296. #
  297. # DocumentRoot: The directory out of which you will serve your
  298. # documents. By default, all requests are taken from this directory, but
  299. # symbolic links and aliases may be used to point to other locations.
  300. #
  301. DocumentRoot "C:/www"
  302.  
  303. #
  304. # Each directory to which Apache has access, can be configured with respect
  305. # to which services and features are allowed and/or disabled in that
  306. # directory (and its subdirectories). 
  307. #
  308. # First, we configure the "default" to be a very restrictive set of 
  309. # permissions.  
  310. #
  311. <Directory />
  312.     Options FollowSymLinks
  313.     AllowOverride None
  314. </Directory>
  315.  
  316. #
  317. # Note that from this point forward you must specifically allow
  318. # particular features to be enabled - so if something's not working as
  319. # you might expect, make sure that you have specifically enabled it
  320. # below.
  321. #
  322.  
  323. #
  324. # This should be changed to whatever you set DocumentRoot to.
  325. #
  326. <Directory "C:/www">
  327.  
  328. #
  329. # This may also be "None", "All", or any combination of "Indexes",
  330. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  331. #
  332. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  333. # doesn't give it to you.
  334. #
  335.     Options Indexes FollowSymLinks MultiViews
  336.  
  337. #
  338. # This controls which options the .htaccess files in directories can
  339. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  340. # "AuthConfig", and "Limit"
  341. #
  342.     AllowOverride None
  343.  
  344. #
  345. # Controls who can get stuff from this server.
  346. #
  347.     Order allow,deny
  348.     Allow from all
  349. </Directory>
  350.  
  351. #
  352. # UserDir: The name of the directory which is appended onto a user's home
  353. # directory if a ~user request is received.
  354. #
  355. # Under Win32, we do not currently try to determine the home directory of
  356. # a Windows login, so a format such as that below needs to be used.  See
  357. # the UserDir documentation for details.
  358. #
  359. <IfModule mod_userdir.c>
  360.     UserDir "C:/Apache/Apache/users/"
  361. </IfModule>
  362.  
  363. #
  364. # Control access to UserDir directories.  The following is an example
  365. # for a site where these directories are restricted to read-only.
  366. #
  367. #<Directory "C:/Apache/Apache/users">
  368. #    AllowOverride FileInfo AuthConfig Limit
  369. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  370. #    <Limit GET POST OPTIONS PROPFIND>
  371. #        Order allow,deny
  372. #        Allow from all
  373. #    </Limit>
  374. #    <LimitExcept GET POST OPTIONS PROPFIND>
  375. #        Order deny,allow
  376. #        Deny from all
  377. #    </LimitExcept>
  378. #</Directory>
  379.  
  380. #
  381. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  382. # directory index.  Separate multiple entries with spaces.
  383. #
  384. <IfModule mod_dir.c>
  385.     DirectoryIndex index.html
  386. </IfModule>
  387.  
  388. #
  389. # AccessFileName: The name of the file to look for in each directory
  390. # for access control information.
  391. #
  392. AccessFileName .htaccess
  393.  
  394. #
  395. # The following lines prevent .htaccess files from being viewed by
  396. # Web clients.  Since .htaccess files often contain authorization
  397. # information, access is disallowed for security reasons.  Comment
  398. # these lines out if you want Web visitors to see the contents of
  399. # .htaccess files.  If you change the AccessFileName directive above,
  400. # be sure to make the corresponding changes here.
  401. #
  402. # Also, folks tend to use names such as .htpasswd for password
  403. # files, so this will protect those as well.
  404. #
  405. <Files ~ "^\.ht">
  406.     Order allow,deny
  407.     Deny from all
  408.     Satisfy All
  409. </Files>
  410.  
  411. #
  412. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  413. # document that was negotiated on the basis of content. This asks proxy
  414. # servers not to cache the document. Uncommenting the following line disables
  415. # this behavior, and proxies will be allowed to cache the documents.
  416. #
  417. #CacheNegotiatedDocs
  418.  
  419. #
  420. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  421. # Apache needs to construct a self-referencing URL (a URL that refers back
  422. # to the server the response is coming from) it will use ServerName and
  423. # Port to form a "canonical" name.  With this setting off, Apache will
  424. # use the hostname:port that the client supplied, when possible.  This
  425. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  426. #
  427. UseCanonicalName On
  428.  
  429. #
  430. # TypesConfig describes where the mime.types file (or equivalent) is
  431. # to be found.
  432. #
  433. <IfModule mod_mime.c>
  434.     TypesConfig conf/mime.types
  435. </IfModule>
  436.  
  437. #
  438. # DefaultType is the default MIME type the server will use for a document
  439. # if it cannot otherwise determine one, such as from filename extensions.
  440. # If your server contains mostly text or HTML documents, "text/plain" is
  441. # a good value.  If most of your content is binary, such as applications
  442. # or images, you may want to use "application/octet-stream" instead to
  443. # keep browsers from trying to display binary files as though they are
  444. # text.
  445. #
  446. DefaultType text/plain
  447.  
  448. #
  449. # The mod_mime_magic module allows the server to use various hints from the
  450. # contents of the file itself to determine its type.  The MIMEMagicFile
  451. # directive tells the module where the hint definitions are located.
  452. # mod_mime_magic is not part of the default server (you have to add
  453. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  454. # Environment' section], or recompile the server and include mod_mime_magic
  455. # as part of the configuration), so it's enclosed in an <IfModule> container.
  456. # This means that the MIMEMagicFile directive will only be processed if the
  457. # module is part of the server.
  458. #
  459. <IfModule mod_mime_magic.c>
  460.     MIMEMagicFile conf/magic
  461. </IfModule>
  462.  
  463. #
  464. # HostnameLookups: Log the names of clients or just their IP addresses
  465. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  466. # The default is off because it'd be overall better for the net if people
  467. # had to knowingly turn this feature on, since enabling it means that
  468. # each client request will result in AT LEAST one lookup request to the
  469. # nameserver.
  470. #
  471. HostnameLookups Off
  472.  
  473. #
  474. # ErrorLog: The location of the error log file.
  475. # If you do not specify an ErrorLog directive within a <VirtualHost>
  476. # container, error messages relating to that virtual host will be
  477. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  478. # container, that host's errors will be logged there and not here.
  479. #
  480. ErrorLog logs/error.log
  481.  
  482. #
  483. # LogLevel: Control the number of messages logged to the error.log.
  484. # Possible values include: debug, info, notice, warn, error, crit,
  485. # alert, emerg.
  486. #
  487. LogLevel warn
  488.  
  489. #
  490. # The following directives define some format nicknames for use with
  491. # a CustomLog directive (see below).
  492. #
  493. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  494. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  495. LogFormat "%{Referer}i -> %U" referer
  496. LogFormat "%{User-agent}i" agent
  497.  
  498. #
  499. # The location and format of the access logfile (Common Logfile Format).
  500. # If you do not define any access logfiles within a <VirtualHost>
  501. # container, they will be logged here.  Contrariwise, if you *do*
  502. # define per-<VirtualHost> access logfiles, transactions will be
  503. # logged therein and *not* in this file.
  504. #
  505. CustomLog logs/access.log common
  506.  
  507. #
  508. # If you would like to have agent and referer logfiles, uncomment the
  509. # following directives.
  510. #
  511. #CustomLog logs/referer.log referer
  512. #CustomLog logs/agent.log agent
  513.  
  514. #
  515. # If you prefer a single logfile with access, agent, and referer information
  516. # (Combined Logfile Format) you can use the following directive.
  517. #
  518. #CustomLog logs/access.log combined
  519.  
  520. #
  521. # Optionally add a line containing the server version and virtual host
  522. # name to server-generated pages (error documents, FTP directory listings,
  523. # mod_status and mod_info output etc., but not CGI generated documents).
  524. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  525. # Set to one of:  On | Off | EMail
  526. #
  527. ServerSignature On
  528.  
  529. # Apache parses all CGI scripts for the shebang line by default.
  530. # This comment line, the first line of the script, consists of the symbols
  531. # pound (#) and exclamation (!) followed by the path of the program that 
  532. # can execute this specific script.  For a perl script, with perl.exe in
  533. # the C:\Program Files\Perl directory, the shebang line should be:
  534.  
  535.    #!c:/program files/perl/perl
  536.  
  537. # Note you _must_not_ indent the actual shebang line, and it must be the
  538. # first line of the file.  Of course, CGI processing must be enabled by 
  539. # the appropriate ScriptAlias or Options ExecCGI directives for the files 
  540. # or directory in question.
  541. #
  542. # However, Apache on Windows allows either the Unix behavior above, or can
  543. # use the Registry to match files by extention.  The command to execute 
  544. # a file of this type is retrieved from the registry by the same method as 
  545. # the Windows Explorer would use to handle double-clicking on a file.
  546. # These script actions can be configured from the Windows Explorer View menu, 
  547. # 'Folder Options', and reviewing the 'File Types' tab.  Clicking the Edit
  548. # button allows you to modify the Actions, of which Apache 1.3 attempts to
  549. # perform the 'Open' Action, and failing that it will try the shebang line.
  550. # This behavior is subject to change in Apache release 2.0.
  551. #
  552. # Each mechanism has it's own specific security weaknesses, from the means
  553. # to run a program you didn't intend the website owner to invoke, and the
  554. # best method is a matter of great debate.
  555. #
  556. # To enable the this Windows specific behavior (and therefore -disable- the
  557. # equivilant Unix behavior), uncomment the following directive:
  558. #
  559. #ScriptInterpreterSource registry
  560. #
  561. # The directive above can be placed in individual <Directory> blocks or the
  562. # .htaccess file, with either the 'registry' (Windows behavior) or 'script' 
  563. # (Unix behavior) option, and will override this server default option.
  564. #
  565.  
  566. #
  567. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  568. # Alias fakename realname
  569. #
  570. <IfModule mod_alias.c>
  571.  
  572.     #
  573.     # Note that if you include a trailing / on fakename then the server will
  574.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  575.     # example, only "/icons/".  If the fakename is slash-terminated, then the 
  576.     # realname must also be slash terminated, and if the fakename omits the 
  577.     # trailing slash, the realname must also omit it.
  578.     #
  579.     Alias /icons/ "C:/Apache/Apache/icons/"
  580.  
  581.     <Directory "C:/Apache/Apache/icons">
  582.         Options Indexes MultiViews
  583.         AllowOverride None
  584.         Order allow,deny
  585.         Allow from all
  586.     </Directory>
  587.  
  588.     # This Alias will project the on-line documentation tree under /manual/
  589.     # even if you change the DocumentRoot. Comment it if you don't want to 
  590.     # provide access to the on-line documentation.
  591.     #
  592.     Alias /manual/ "C:/Apache/Apache/htdocs/manual/"
  593.  
  594.     <Directory "C:/Apache/Apache/htdocs/manual">
  595.         Options Indexes FollowSymlinks MultiViews
  596.         AllowOverride None
  597.         Order allow,deny
  598.         Allow from all
  599.     </Directory>
  600.  
  601.     #
  602.     # ScriptAlias: This controls which directories contain server scripts.
  603.     # ScriptAliases are essentially the same as Aliases, except that
  604.     # documents in the realname directory are treated as applications and
  605.     # run by the server when requested rather than as documents sent to the client.
  606.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  607.     # Alias.
  608.     #
  609.     ScriptAlias /cgi-bin/ "C:/Apache/Apache/cgi-bin/"
  610.  
  611.     #
  612.     # "C:/Apache/Apache/cgi-bin" should be changed to whatever your ScriptAliased
  613.     # CGI directory exists, if you have that configured.
  614.     #
  615.     <Directory "C:/Apache/Apache/cgi-bin">
  616.         AllowOverride None
  617.         Options None
  618.         Order allow,deny
  619.         Allow from all
  620.     </Directory>
  621.  
  622. </IfModule>
  623. # End of aliases.
  624.  
  625. #
  626. # Redirect allows you to tell clients about documents which used to exist in
  627. # your server's namespace, but do not anymore. This allows you to tell the
  628. # clients where to look for the relocated document.
  629. # Format: Redirect old-URI new-URL
  630. #
  631.  
  632. #
  633. # Directives controlling the display of server-generated directory listings.
  634. #
  635. <IfModule mod_autoindex.c>
  636.  
  637.     #
  638.     # FancyIndexing is whether you want fancy directory indexing or standard
  639.     #
  640.     # Note, add the option TrackModified to the IndexOptions default list only
  641.     # if all indexed directories reside on NTFS volumes.  The TrackModified flag
  642.     # will report the Last-Modified date to assist caches and proxies to properly
  643.     # track directory changes, but it does _not_ work on FAT volumes.
  644.     #
  645.     IndexOptions FancyIndexing
  646.  
  647.     #
  648.     # AddIcon* directives tell the server which icon to show for different
  649.     # files or filename extensions.  These are only displayed for
  650.     # FancyIndexed directories.
  651.     #
  652.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  653.  
  654.     AddIconByType (TXT,/icons/text.gif) text/*
  655.     AddIconByType (IMG,/icons/image2.gif) image/*
  656.     AddIconByType (SND,/icons/sound2.gif) audio/*
  657.     AddIconByType (VID,/icons/movie.gif) video/*
  658.  
  659.     AddIcon /icons/binary.gif .bin .exe
  660.     AddIcon /icons/binhex.gif .hqx
  661.     AddIcon /icons/tar.gif .tar
  662.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  663.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  664.     AddIcon /icons/a.gif .ps .ai .eps
  665.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  666.     AddIcon /icons/text.gif .txt
  667.     AddIcon /icons/c.gif .c
  668.     AddIcon /icons/p.gif .pl .py
  669.     AddIcon /icons/f.gif .for
  670.     AddIcon /icons/dvi.gif .dvi
  671.     AddIcon /icons/uuencoded.gif .uu
  672.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  673.     AddIcon /icons/tex.gif .tex
  674.     AddIcon /icons/bomb.gif core
  675.  
  676.     AddIcon /icons/back.gif ..
  677.     AddIcon /icons/hand.right.gif README
  678.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  679.     AddIcon /icons/blank.gif ^^BLANKICON^^
  680.  
  681.     #
  682.     # DefaultIcon is which icon to show for files which do not have an icon
  683.     # explicitly set.
  684.     #
  685.     DefaultIcon /icons/unknown.gif
  686.  
  687.     #
  688.     # AddDescription allows you to place a short description after a file in
  689.     # server-generated indexes.  These are only displayed for FancyIndexed
  690.     # directories.
  691.     # Format: AddDescription "description" filename
  692.     #
  693.     #AddDescription "GZIP compressed document" .gz
  694.     #AddDescription "tar archive" .tar
  695.     #AddDescription "GZIP compressed tar archive" .tgz
  696.  
  697.     #
  698.     # ReadmeName is the name of the README file the server will look for by
  699.     # default, and append to directory listings.
  700.     #
  701.     # HeaderName is the name of a file which should be prepended to
  702.     # directory indexes. 
  703.     #
  704.     # If MultiViews are amongst the Options in effect, the server will
  705.     # first look for name.html and include it if found.  If name.html
  706.     # doesn't exist, the server will then look for name.txt and include
  707.     # it as plaintext if found.
  708.     #
  709.     ReadmeName README
  710.     HeaderName HEADER
  711.  
  712.     #
  713.     # IndexIgnore is a set of filenames which directory indexing should ignore
  714.     # and not include in the listing.  Shell-style wildcarding is permitted.
  715.     #
  716.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  717.  
  718. </IfModule>
  719. # End of indexing directives.
  720.  
  721. #
  722. # Document types.
  723. #
  724. <IfModule mod_mime.c>
  725.  
  726.     #
  727.     # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  728.     # information on the fly. Note: Not all browsers support this.
  729.     # Despite the name similarity, the following Add* directives have nothing
  730.     # to do with the FancyIndexing customization directives above.
  731.     #
  732.     AddEncoding x-compress Z
  733.     AddEncoding x-gzip gz tgz
  734.     #
  735.     # AddLanguage allows you to specify the language of a document. You can
  736.     # then use content negotiation to give a browser a file in a language
  737.     # it can understand.
  738.     #
  739.     # Note 1: The suffix does not have to be the same as the language
  740.     # keyword --- those with documents in Polish (whose net-standard
  741.     # language code is pl) may wish to use "AddLanguage pl .po" to
  742.     # avoid the ambiguity with the common suffix for perl scripts.
  743.     #
  744.     # Note 2: The example entries below illustrate that in quite
  745.     # some cases the two character 'Language' abbreviation is not
  746.     # identical to the two character 'Country' code for its country,
  747.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  748.     #
  749.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  750.     # specifier. But there is 'work in progress' to fix this and get
  751.     # the reference data for rfc1766 cleaned up.
  752.     #
  753.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  754.     # French (fr) - German (de) - Greek-Modern (el)
  755.     # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
  756.     # Portugese (pt) - Luxembourgeois* (ltz)
  757.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  758.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  759.     # Russian (ru)
  760.     #
  761.     AddLanguage da .dk
  762.     AddLanguage nl .nl
  763.     AddLanguage en .en
  764.     AddLanguage et .ee
  765.     AddLanguage fr .fr
  766.     AddLanguage de .de
  767.     AddLanguage el .el
  768.     AddLanguage he .he
  769.     AddCharset ISO-8859-8 .iso8859-8
  770.     AddLanguage it .it
  771.     AddLanguage ja .ja
  772.     AddCharset ISO-2022-JP .jis
  773.     AddLanguage kr .kr
  774.     AddCharset ISO-2022-KR .iso-kr
  775.     AddLanguage nn .nn
  776.     AddLanguage no .no
  777.     AddLanguage pl .po
  778.     AddCharset ISO-8859-2 .iso-pl
  779.     AddLanguage pt .pt
  780.     AddLanguage pt-br .pt-br
  781.     AddLanguage ltz .lu
  782.     AddLanguage ca .ca
  783.     AddLanguage es .es
  784.     AddLanguage sv .sv
  785.     AddLanguage cz .cz
  786.     AddLanguage ru .ru
  787.     AddLanguage tw .tw
  788.     AddLanguage zh-tw .tw
  789.     AddCharset Big5         .Big5    .big5
  790.     AddCharset WINDOWS-1251 .cp-1251
  791.     AddCharset CP866        .cp866
  792.     AddCharset ISO-8859-5   .iso-ru
  793.     AddCharset KOI8-R       .koi8-r
  794.     AddCharset UCS-2        .ucs2
  795.     AddCharset UCS-4        .ucs4
  796.     AddCharset UTF-8        .utf8
  797.  
  798.     # LanguagePriority allows you to give precedence to some languages
  799.     # in case of a tie during content negotiation.
  800.     #
  801.     # Just list the languages in decreasing order of preference. We have
  802.     # more or less alphabetized them here. You probably want to change this.
  803.     #
  804.     <IfModule mod_negotiation.c>
  805.         LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
  806.     </IfModule>
  807.  
  808.      LoadModule php4_module C:/php/sapi/php4apache.dll
  809.      AddType application/x-httpd-php .php .php3 .php4 .wml .phtml .inc .ihtml 
  810.      AddType text/vnd.wap.wml .wml
  811.      AddType image/vnd.wap.wbmp .wbmp 
  812.      
  813.     #
  814.     # AddType allows you to tweak mime.types without actually editing it, or to
  815.     # make certain files to be certain types.
  816.     #
  817.     AddType application/x-tar .tgz
  818.  
  819.     #
  820.     # AddHandler allows you to map certain file extensions to "handlers",
  821.     # actions unrelated to filetype. These can be either built into the server
  822.     # or added with the Action command (see below)
  823.     #
  824.     # If you want to use server side includes, or CGI outside
  825.     # ScriptAliased directories, uncomment the following lines.
  826.     #
  827.     # To use CGI scripts:
  828.     #
  829.     #AddHandler cgi-script .cgi
  830.  
  831.     #
  832.     # To use server-parsed HTML files
  833.     #
  834.     #AddType text/html .shtml
  835.     #AddHandler server-parsed .shtml
  836.  
  837.     #
  838.     # Uncomment the following line to enable Apache's send-asis HTTP file
  839.     # feature
  840.     #
  841.     #AddHandler send-as-is asis
  842.  
  843.     #
  844.     # If you wish to use server-parsed imagemap files, use
  845.     #
  846.     #AddHandler imap-file map
  847.  
  848.     #
  849.     # To enable type maps, you might want to use
  850.     #
  851.     #AddHandler type-map var
  852.  
  853. </IfModule>
  854. # End of document types.
  855.  
  856. #
  857. # Action lets you define media types that will execute a script whenever
  858. # a matching file is called. This eliminates the need for repeated URL
  859. # pathnames for oft-used CGI file processors.
  860. # Format: Action media/type /cgi-script/location
  861. # Format: Action handler-name /cgi-script/location
  862. #
  863.  
  864. #
  865. # MetaDir: specifies the name of the directory in which Apache can find
  866. # meta information files. These files contain additional HTTP headers
  867. # to include when sending the document
  868. #
  869. #MetaDir .web
  870.  
  871. #
  872. # MetaSuffix: specifies the file name suffix for the file containing the
  873. # meta information.
  874. #
  875. #MetaSuffix .meta
  876.  
  877. #
  878. # Customizable error response (Apache style)
  879. #  these come in three flavors
  880. #
  881. #    1) plain text
  882. #ErrorDocument 500 "The server made a boo boo.
  883. #  n.b.  the single leading (") marks it as text, it does not get output
  884. #
  885. #    2) local redirects
  886. #ErrorDocument 404 /missing.html
  887. #  to redirect to local URL /missing.html
  888. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  889. #  N.B.: You can redirect to a script or a document using server-side-includes.
  890. #
  891. #    3) external redirects
  892. #ErrorDocument 402 http://some.other-server.com/subscription_info.html
  893. #  N.B.: Many of the environment variables associated with the original
  894. #  request will *not* be available to such a script.
  895.  
  896. #
  897. # Customize behaviour based on the browser
  898. #
  899. <IfModule mod_setenvif.c>
  900.  
  901.     #
  902.     # The following directives modify normal HTTP response behavior.
  903.     # The first directive disables keepalive for Netscape 2.x and browsers that
  904.     # spoof it. There are known problems with these browser implementations.
  905.     # The second directive is for Microsoft Internet Explorer 4.0b2
  906.     # which has a broken HTTP/1.1 implementation and does not properly
  907.     # support keepalive when it is used on 301 or 302 (redirect) responses.
  908.     #
  909.     BrowserMatch "Mozilla/2" nokeepalive
  910.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  911.  
  912.     #
  913.     # The following directive disables HTTP/1.1 responses to browsers which
  914.     # are in violation of the HTTP/1.0 spec by not being able to grok a
  915.     # basic 1.1 response.
  916.     #
  917.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  918.     BrowserMatch "Java/1\.0" force-response-1.0
  919.     BrowserMatch "JDK/1\.0" force-response-1.0
  920.  
  921. </IfModule>
  922. # End of browser customization directives
  923.  
  924. #
  925. # Allow server status reports, with the URL of http://servername/server-status
  926. # Change the "localhost" to match your domain to enable.
  927. #
  928. #<Location /server-status>
  929. #    SetHandler server-status
  930. #    Order deny,allow
  931. #    Deny from all
  932. #    Allow from localhost
  933. #</Location>
  934.  
  935. #
  936. # Allow remote server configuration reports, with the URL of
  937. # http://servername/server-info (requires that mod_info.c be loaded).
  938. # Change the "localhost" to match your domain to enable.
  939. #
  940. #<Location /server-info>
  941. #    SetHandler server-info
  942. #    Order deny,allow
  943. #    Deny from all
  944. #    Allow from localhost
  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. #
  960. # Proxy Server directives. Uncomment the following lines to
  961. # enable the proxy server:
  962. #
  963. #<IfModule mod_proxy.c>
  964. #    ProxyRequests On
  965.  
  966. #    <Directory proxy:*>
  967. #        Order deny,allow
  968. #        Deny from all
  969. #        Allow from localhost
  970. #    </Directory>
  971.  
  972.     #
  973.     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  974.     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  975.     # Set to one of: Off | On | Full | Block
  976.     #
  977. #    ProxyVia On
  978.  
  979.     #
  980.     # To enable the cache as well, edit and uncomment the following lines:
  981.     # (no cacheing without CacheRoot)
  982.     #
  983. #    CacheRoot "C:/Apache/Apache/proxy"
  984. #    CacheSize 5
  985. #    CacheGcInterval 4
  986. #    CacheMaxExpire 24
  987. #    CacheLastModifiedFactor 0.1
  988. #    CacheDefaultExpire 1
  989. #    NoCache a-domain.com another-domain.edu joes.garage-sale.com
  990.  
  991. #</IfModule>
  992. # End of proxy directives.
  993.  
  994. ### Section 3: Virtual Hosts
  995. #
  996. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  997. # machine you can setup VirtualHost containers for them. Most configurations
  998. # use only name-based virtual hosts so the server doesn't need to worry about
  999. # IP addresses. This is indicated by the asterisks in the directives below.
  1000. #
  1001. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  1002. # for further details before you try to setup virtual hosts.
  1003. #
  1004. # You may use the command line option '-S' to verify your virtual host
  1005. # configuration.
  1006.  
  1007. #
  1008. # Use name-based virtual hosting.
  1009. #
  1010. #NameVirtualHost *
  1011.  
  1012. #
  1013. # VirtualHost example:
  1014. # Almost any Apache directive may go into a VirtualHost container.
  1015. # The first VirtualHost section is used for requests without a known
  1016. # server name.
  1017. #
  1018. #<VirtualHost *>
  1019. #    ServerAdmin webmaster@dummy-host.example.com
  1020. #    DocumentRoot /www/docs/dummy-host.example.com
  1021. #    ServerName dummy-host.example.com
  1022. #    ErrorLog logs/dummy-host.example.com-error_log
  1023. #    CustomLog logs/dummy-host.example.com-access_log common
  1024. #</VirtualHost>
  1025.