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