Advertisement
Guest User

Working Configuration

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