Mr_Gavitt

Untitled

Nov 13th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.98 KB | None | 0 0
  1. #
  2. # This is the main Apache server configuration file. It contains the
  3. # configuration directives that give the server its instructions.
  4. # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
  7. # for a discussion of each configuration directive.
  8. #
  9. #
  10. # Do NOT simply read the instructions in here without understanding
  11. # what they do. They're here only as hints or reminders. If you are unsure
  12. # consult the online docs. You have been warned.
  13. #
  14. # The configuration directives are grouped into three basic sections:
  15. # 1. Directives that control the operation of the Apache server process as a
  16. # whole (the 'global environment').
  17. # 2. Directives that define the parameters of the 'main' or 'default' server,
  18. # which responds to requests that aren't handled by a virtual host.
  19. # These directives also provide default values for the settings
  20. # of all virtual hosts.
  21. # 3. Settings for virtual hosts, which allow Web requests to be sent to
  22. # different IP addresses or hostnames and have them handled by the
  23. # same Apache server process.
  24. #
  25. # Configuration and logfile names: If the filenames you specify for many
  26. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  27. # server will use that explicit path. If the filenames do *not* begin
  28. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  29. # with ServerRoot set to "/etc/httpd" will be interpreted by the
  30. # server as "/etc/httpd/logs/foo.log".
  31. #
  32.  
  33. ### Section 1: Global Environment
  34. #
  35. # The directives in this section affect the overall operation of Apache,
  36. # such as the number of concurrent requests it can handle or where it
  37. # can find its configuration files.
  38. #
  39.  
  40. #
  41. # Don't give away too much information about all the subcomponents
  42. # we are running. Comment out this line if you don't mind remote sites
  43. # finding out what major optional modules you are running
  44. ServerTokens OS
  45.  
  46. #
  47. # ServerRoot: The top of the directory tree under which the server's
  48. # configuration, error, and log files are kept.
  49. #
  50. # NOTE! If you intend to place this on an NFS (or otherwise network)
  51. # mounted filesystem then please read the LockFile documentation
  52. # (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
  53. # you will save yourself a lot of trouble.
  54. #
  55. # Do NOT add a slash at the end of the directory path.
  56. #
  57. ServerRoot "/etc/httpd"
  58.  
  59. #
  60. # PidFile: The file in which the server should record its process
  61. # identification number when it starts. Note the PIDFILE variable in
  62. # /etc/sysconfig/httpd must be set appropriately if this location is
  63. # changed.
  64. #
  65. PidFile run/httpd.pid
  66.  
  67. #
  68. # Timeout: The number of seconds before receives and sends time out.
  69. #
  70. TimeOut 60
  71.  
  72. #
  73. # KeepAlive: Whether or not to allow persistent connections (more than
  74. # one request per connection). Set to "Off" to deactivate.
  75. #
  76. KeepAlive on
  77.  
  78. #
  79. # MaxKeepAliveRequests: The maximum number of requests to allow
  80. # during a persistent connection. Set to 0 to allow an unlimited amount.
  81. # We recommend you leave this number high, for maximum performance.
  82. #
  83. MaxKeepAliveRequests 100
  84.  
  85. #
  86. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  87. # same client on the same connection.
  88. #
  89. KeepAliveTimeout 15
  90.  
  91. ##
  92. ## Server-Pool Size Regulation (MPM specific)
  93. ##
  94.  
  95. # prefork MPM
  96. # StartServers: number of server processes to start
  97. # MinSpareServers: minimum number of server processes which are kept spare
  98. # MaxSpareServers: maximum number of server processes which are kept spare
  99. # ServerLimit: maximum value for MaxClients for the lifetime of the server
  100. # MaxClients: maximum number of server processes allowed to start
  101. # MaxRequestsPerChild: maximum number of requests a server process serves
  102. <IfModule prefork.c>
  103. StartServers 8
  104. MinSpareServers 5
  105. MaxSpareServers 20
  106. ServerLimit 256
  107. MaxClients 256
  108. MaxRequestsPerChild 4000
  109. </IfModule>
  110.  
  111. # worker MPM
  112. # StartServers: initial number of server processes to start
  113. # MaxClients: maximum number of simultaneous client connections
  114. # MinSpareThreads: minimum number of worker threads which are kept spare
  115. # MaxSpareThreads: maximum number of worker threads which are kept spare
  116. # ThreadsPerChild: constant number of worker threads in each server process
  117. # MaxRequestsPerChild: maximum number of requests a server process serves
  118. <IfModule worker.c>
  119. StartServers 4
  120. MaxClients 300
  121. MinSpareThreads 25
  122. MaxSpareThreads 75
  123. ThreadsPerChild 25
  124. MaxRequestsPerChild 0
  125. </IfModule>
  126.  
  127. #
  128. # Listen: Allows you to bind Apache to specific IP addresses and/or
  129. # ports, in addition to the default. See also the <VirtualHost>
  130. # directive.
  131. #
  132. # Change this to Listen on specific IP addresses as shown below to
  133. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  134. #
  135. #Listen 12.34.56.78:80
  136. Listen *:80
  137.  
  138. #
  139. # Dynamic Shared Object (DSO) Support
  140. #
  141. # To be able to use the functionality of a module which was built as a DSO you
  142. # have to place corresponding `LoadModule' lines at this location so the
  143. # directives contained in it are actually available _before_ they are used.
  144. # Statically compiled modules (those listed by `httpd -l') do not need
  145. # to be loaded here.
  146. #
  147. # Example:
  148. # LoadModule foo_module modules/mod_foo.so
  149. #
  150.  
  151.  
  152. #
  153. # The following modules are not loaded by default:
  154. #
  155. #LoadModule asis_module modules/mod_asis.so
  156. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  157. #LoadModule cern_meta_module modules/mod_cern_meta.so
  158. #LoadModule cgid_module modules/mod_cgid.so
  159. #LoadModule dbd_module modules/mod_dbd.so
  160. #LoadModule dumpio_module modules/mod_dumpio.so
  161. #LoadModule filter_module modules/mod_filter.so
  162. #LoadModule ident_module modules/mod_ident.so
  163. #LoadModule log_forensic_module modules/mod_log_forensic.so
  164. #LoadModule unique_id_module modules/mod_unique_id.so
  165. #
  166.  
  167. #
  168. # Load config files from the config directory "/etc/httpd/conf.d".
  169. #
  170. Include conf.d/*.conf
  171.  
  172. #
  173. # ExtendedStatus controls whether Apache will generate "full" status
  174. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  175. # Off) when the "server-status" handler is called. The default is Off.
  176. #
  177. #ExtendedStatus On
  178.  
  179. #
  180. # If you wish httpd to run as a different user or group, you must run
  181. # httpd as root initially and it will switch.
  182. #
  183. # User/Group: The name (or #number) of the user/group to run httpd as.
  184. # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  185. # . On HPUX you may not be able to use shared memory as nobody, and the
  186. # suggested workaround is to create a user www and use that user.
  187. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  188. # when the value of (unsigned)Group is above 60000;
  189. # don't use Group #-1 on these systems!
  190. #
  191. User apache
  192. Group apache
  193.  
  194. ### Section 2: 'Main' server configuration
  195. #
  196. # The directives in this section set up the values used by the 'main'
  197. # server, which responds to any requests that aren't handled by a
  198. # <VirtualHost> definition. These values also provide defaults for
  199. # any <VirtualHost> containers you may define later in the file.
  200. #
  201. # All of these directives may appear inside <VirtualHost> containers,
  202. # in which case these default settings will be overridden for the
  203. # virtual host being defined.
  204. #
  205.  
  206. #
  207. # ServerAdmin: Your address, where problems with the server should be
  208. # e-mailed. This address appears on some server-generated pages, such
  209. # as error documents. e.g. [email protected]
  210. #
  211. ServerAdmin root@localhost
  212.  
  213. #
  214. # ServerName gives the name and port that the server uses to identify itself.
  215. # This can often be determined automatically, but we recommend you specify
  216. # it explicitly to prevent problems during startup.
  217. #
  218. # If this is not set to valid DNS name for your host, server-generated
  219. # redirections will not work. See also the UseCanonicalName directive.
  220. #
  221. # If your host doesn't have a registered DNS name, enter its IP address here.
  222. # You will have to access it by its address anyway, and this will make
  223. # redirections work in a sensible way.
  224. #
  225. #ServerName www.example.com:80
  226.  
  227. #
  228. # UseCanonicalName: Determines how Apache constructs self-referencing
  229. # URLs and the SERVER_NAME and SERVER_PORT variables.
  230. # When set "Off", Apache will use the Hostname and Port supplied
  231. # by the client. When set "On", Apache will use the value of the
  232. # ServerName directive.
  233. #
  234. UseCanonicalName Off
  235.  
  236. #
  237. # DocumentRoot: The directory out of which you will serve your
  238. # documents. By default, all requests are taken from this directory, but
  239. # symbolic links and aliases may be used to point to other locations.
  240. #
  241. DocumentRoot "/var/www/html"
  242.  
  243. #
  244. # Each directory to which Apache has access can be configured with respect
  245. # to which services and features are allowed and/or disabled in that
  246. # directory (and its subdirectories).
  247. #
  248. # First, we configure the "default" to be a very restrictive set of
  249. # features.
  250. #
  251. <Directory />
  252. Options FollowSymLinks
  253. AllowOverride None
  254. </Directory>
  255.  
  256. #
  257. # Note that from this point forward you must specifically allow
  258. # particular features to be enabled - so if something's not working as
  259. # you might expect, make sure that you have specifically enabled it
  260. # below.
  261. #
  262.  
  263. #
  264. # This should be changed to whatever you set DocumentRoot to.
  265. #
  266. <Directory "/var/www/html">
  267.  
  268. #
  269. # Possible values for the Options directive are "None", "All",
  270. # or any combination of:
  271. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  272. #
  273. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  274. # doesn't give it to you.
  275. #
  276. # The Options directive is both complicated and important. Please see
  277. # http://httpd.apache.org/docs/2.2/mod/core.html#options
  278. # for more information.
  279. #
  280. Options Indexes FollowSymLinks
  281.  
  282. #
  283. # AllowOverride controls what directives may be placed in .htaccess files.
  284. # It can be "All", "None", or any combination of the keywords:
  285. # Options FileInfo AuthConfig Limit
  286. #
  287. AllowOverride All
  288.  
  289. #
  290. # Controls who can get stuff from this server.
  291. #
  292. Order allow,deny
  293. Allow from all
  294.  
  295. </Directory>
  296.  
  297. #
  298. # UserDir: The name of the directory that is appended onto a user's home
  299. # directory if a ~user request is received.
  300. #
  301. # The path to the end user account 'public_html' directory must be
  302. # accessible to the webserver userid. This usually means that ~userid
  303. # must have permissions of 711, ~userid/public_html must have permissions
  304. # of 755, and documents contained therein must be world-readable.
  305. # Otherwise, the client will only receive a "403 Forbidden" message.
  306. #
  307. # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
  308. #
  309. <IfModule mod_userdir.c>
  310. #
  311. # UserDir is disabled by default since it can confirm the presence
  312. # of a username on the system (depending on home directory
  313. # permissions).
  314. #
  315. UserDir disabled
  316.  
  317. #
  318. # To enable requests to /~user/ to serve the user's public_html
  319. # directory, remove the "UserDir disabled" line above, and uncomment
  320. # the following line instead:
  321. #
  322. #UserDir public_html
  323.  
  324. </IfModule>
  325.  
  326. #
  327. # Control access to UserDir directories. The following is an example
  328. # for a site where these directories are restricted to read-only.
  329. #
  330. #<Directory /home/*/public_html>
  331. # AllowOverride FileInfo AuthConfig Limit
  332. # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  333. # <Limit GET POST OPTIONS>
  334. # Order allow,deny
  335. # Allow from all
  336. # </Limit>
  337. # <LimitExcept GET POST OPTIONS>
  338. # Order deny,allow
  339. # Deny from all
  340. # </LimitExcept>
  341. #</Directory>
  342.  
  343. #
  344. # DirectoryIndex: sets the file that Apache will serve if a directory
  345. # is requested.
  346. #
  347. # The index.html.var file (a type-map) is used to deliver content-
  348. # negotiated documents. The MultiViews Option can be used for the
  349. # same purpose, but it is much slower.
  350. #
  351. DirectoryIndex index.html index.html.var
  352.  
  353. #
  354. # AccessFileName: The name of the file to look for in each directory
  355. # for additional configuration directives. See also the AllowOverride
  356. # directive.
  357. #
  358. AccessFileName .htaccess
  359.  
  360. #
  361. # The following lines prevent .htaccess and .htpasswd files from being
  362. # viewed by Web clients.
  363. #
  364. <Files ~ "^\.ht">
  365. Order allow,deny
  366. Deny from all
  367. Satisfy All
  368. </Files>
  369.  
  370. #
  371. # TypesConfig describes where the mime.types file (or equivalent) is
  372. # to be found.
  373. #
  374. TypesConfig /etc/mime.types
  375.  
  376. #
  377. # DefaultType is the default MIME type the server will use for a document
  378. # if it cannot otherwise determine one, such as from filename extensions.
  379. # If your server contains mostly text or HTML documents, "text/plain" is
  380. # a good value. If most of your content is binary, such as applications
  381. # or images, you may want to use "application/octet-stream" instead to
  382. # keep browsers from trying to display binary files as though they are
  383. # text.
  384. #
  385. DefaultType text/plain
  386.  
  387. #
  388. # The mod_mime_magic module allows the server to use various hints from the
  389. # contents of the file itself to determine its type. The MIMEMagicFile
  390. # directive tells the module where the hint definitions are located.
  391. #
  392. <IfModule mod_mime_magic.c>
  393. # MIMEMagicFile /usr/share/magic.mime
  394. MIMEMagicFile conf/magic
  395. </IfModule>
  396.  
  397. #
  398. # HostnameLookups: Log the names of clients or just their IP addresses
  399. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  400. # The default is off because it'd be overall better for the net if people
  401. # had to knowingly turn this feature on, since enabling it means that
  402. # each client request will result in AT LEAST one lookup request to the
  403. # nameserver.
  404. #
  405. HostnameLookups Off
  406.  
  407. #
  408. # EnableMMAP: Control whether memory-mapping is used to deliver
  409. # files (assuming that the underlying OS supports it).
  410. # The default is on; turn this off if you serve from NFS-mounted
  411. # filesystems. On some systems, turning it off (regardless of
  412. # filesystem) can improve performance; for details, please see
  413. # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
  414. #
  415. #EnableMMAP off
  416.  
  417. #
  418. # EnableSendfile: Control whether the sendfile kernel support is
  419. # used to deliver files (assuming that the OS supports it).
  420. # The default is on; turn this off if you serve from NFS-mounted
  421. # filesystems. Please see
  422. # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
  423. #
  424. #EnableSendfile off
  425.  
  426. #
  427. # ErrorLog: The location of the error log file.
  428. # If you do not specify an ErrorLog directive within a <VirtualHost>
  429. # container, error messages relating to that virtual host will be
  430. # logged here. If you *do* define an error logfile for a <VirtualHost>
  431. # container, that host's errors will be logged there and not here.
  432. #
  433. ErrorLog logs/error_log
  434.  
  435. #
  436. # LogLevel: Control the number of messages logged to the error_log.
  437. # Possible values include: debug, info, notice, warn, error, crit,
  438. # alert, emerg.
  439. #
  440. LogLevel warn
  441.  
  442. #
  443. # The following directives define some format nicknames for use with
  444. # a CustomLog directive (see below).
  445. #
  446. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  447. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  448. LogFormat "%{Referer}i -> %U" referer
  449. LogFormat "%{User-agent}i" agent
  450.  
  451. # "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
  452. # requires the mod_logio module to be loaded.
  453. #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  454.  
  455. #
  456. # The location and format of the access logfile (Common Logfile Format).
  457. # If you do not define any access logfiles within a <VirtualHost>
  458. # container, they will be logged here. Contrariwise, if you *do*
  459. # define per-<VirtualHost> access logfiles, transactions will be
  460. # logged therein and *not* in this file.
  461. #
  462. #CustomLog logs/access_log common
  463.  
  464. #
  465. # If you would like to have separate agent and referer logfiles, uncomment
  466. # the following directives.
  467. #
  468. #CustomLog logs/referer_log referer
  469. #CustomLog logs/agent_log agent
  470.  
  471. #
  472. # For a single logfile with access, agent, and referer information
  473. # (Combined Logfile Format), use the following directive:
  474. #
  475. CustomLog logs/access_log combined
  476.  
  477. #
  478. # Optionally add a line containing the server version and virtual host
  479. # name to server-generated pages (internal error documents, FTP directory
  480. # listings, mod_status and mod_info output etc., but not CGI generated
  481. # documents or custom error documents).
  482. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  483. # Set to one of: On | Off | EMail
  484. #
  485. ServerSignature On
  486.  
  487. #
  488. # Aliases: Add here as many aliases as you need (with no limit). The format is
  489. # Alias fakename realname
  490. #
  491. # Note that if you include a trailing / on fakename then the server will
  492. # require it to be present in the URL. So "/icons" isn't aliased in this
  493. # example, only "/icons/". If the fakename is slash-terminated, then the
  494. # realname must also be slash terminated, and if the fakename omits the
  495. # trailing slash, the realname must also omit it.
  496. #
  497. # We include the /icons/ alias for FancyIndexed directory listings. If you
  498. # do not use FancyIndexing, you may comment this out.
  499. #
  500. Alias /icons/ "/var/www/icons/"
  501.  
  502. <Directory "/var/www/icons">
  503. Options Indexes MultiViews FollowSymLinks
  504. AllowOverride None
  505. Order allow,deny
  506. Allow from all
  507. </Directory>
  508.  
  509. #
  510. # WebDAV module configuration section.
  511. #
  512. <IfModule mod_dav_fs.c>
  513. # Location of the WebDAV lock database.
  514. DAVLockDB /var/lib/dav/lockdb
  515. </IfModule>
  516.  
  517. #
  518. # ScriptAlias: This controls which directories contain server scripts.
  519. # ScriptAliases are essentially the same as Aliases, except that
  520. # documents in the realname directory are treated as applications and
  521. # run by the server when requested rather than as documents sent to the client.
  522. # The same rules about trailing "/" apply to ScriptAlias directives as to
  523. # Alias.
  524. #
  525. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  526.  
  527. #
  528. # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
  529. # CGI directory exists, if you have that configured.
  530. #
  531. <Directory "/var/www/cgi-bin">
  532. AllowOverride None
  533. Options None
  534. Order allow,deny
  535. Allow from all
  536. </Directory>
  537.  
  538. #
  539. # Redirect allows you to tell clients about documents which used to exist in
  540. # your server's namespace, but do not anymore. This allows you to tell the
  541. # clients where to look for the relocated document.
  542. # Example:
  543. # Redirect permanent /foo http://www.example.com/bar
  544.  
  545. #
  546. # Directives controlling the display of server-generated directory listings.
  547. #
  548.  
  549. #
  550. # IndexOptions: Controls the appearance of server-generated directory
  551. # listings.
  552. #
  553. IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
  554.  
  555. #
  556. # AddIcon* directives tell the server which icon to show for different
  557. # files or filename extensions. These are only displayed for
  558. # FancyIndexed directories.
  559. #
  560. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  561.  
  562. AddIconByType (TXT,/icons/text.gif) text/*
  563. AddIconByType (IMG,/icons/image2.gif) image/*
  564. AddIconByType (SND,/icons/sound2.gif) audio/*
  565. AddIconByType (VID,/icons/movie.gif) video/*
  566.  
  567. AddIcon /icons/binary.gif .bin .exe
  568. AddIcon /icons/binhex.gif .hqx
  569. AddIcon /icons/tar.gif .tar
  570. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  571. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  572. AddIcon /icons/a.gif .ps .ai .eps
  573. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  574. AddIcon /icons/text.gif .txt
  575. AddIcon /icons/c.gif .c
  576. AddIcon /icons/p.gif .pl .py
  577. AddIcon /icons/f.gif .for
  578. AddIcon /icons/dvi.gif .dvi
  579. AddIcon /icons/uuencoded.gif .uu
  580. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  581. AddIcon /icons/tex.gif .tex
  582. AddIcon /icons/bomb.gif core
  583.  
  584. AddIcon /icons/back.gif ..
  585. AddIcon /icons/hand.right.gif README
  586. AddIcon /icons/folder.gif ^^DIRECTORY^^
  587. AddIcon /icons/blank.gif ^^BLANKICON^^
  588.  
  589. #
  590. # DefaultIcon is which icon to show for files which do not have an icon
  591. # explicitly set.
  592. #
  593. DefaultIcon /icons/unknown.gif
  594.  
  595. #
  596. # AddDescription allows you to place a short description after a file in
  597. # server-generated indexes. These are only displayed for FancyIndexed
  598. # directories.
  599. # Format: AddDescription "description" filename
  600. #
  601. #AddDescription "GZIP compressed document" .gz
  602. #AddDescription "tar archive" .tar
  603. #AddDescription "GZIP compressed tar archive" .tgz
  604.  
  605. #
  606. # ReadmeName is the name of the README file the server will look for by
  607. # default, and append to directory listings.
  608. #
  609. # HeaderName is the name of a file which should be prepended to
  610. # directory indexes.
  611. ReadmeName README.html
  612. HeaderName HEADER.html
  613.  
  614. #
  615. # IndexIgnore is a set of filenames which directory indexing should ignore
  616. # and not include in the listing. Shell-style wildcarding is permitted.
  617. #
  618. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  619.  
  620. #
  621. # DefaultLanguage and AddLanguage allows you to specify the language of
  622. # a document. You can then use content negotiation to give a browser a
  623. # file in a language the user can understand.
  624. #
  625. # Specify a default language. This means that all data
  626. # going out without a specific language tag (see below) will
  627. # be marked with this one. You probably do NOT want to set
  628. # this unless you are sure it is correct for all cases.
  629. #
  630. # * It is generally better to not mark a page as
  631. # * being a certain language than marking it with the wrong
  632. # * language!
  633. #
  634. # DefaultLanguage nl
  635. #
  636. # Note 1: The suffix does not have to be the same as the language
  637. # keyword --- those with documents in Polish (whose net-standard
  638. # language code is pl) may wish to use "AddLanguage pl .po" to
  639. # avoid the ambiguity with the common suffix for perl scripts.
  640. #
  641. # Note 2: The example entries below illustrate that in some cases
  642. # the two character 'Language' abbreviation is not identical to
  643. # the two character 'Country' code for its country,
  644. # E.g. 'Danmark/dk' versus 'Danish/da'.
  645. #
  646. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  647. # specifier. There is 'work in progress' to fix this and get
  648. # the reference data for rfc1766 cleaned up.
  649. #
  650. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  651. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  652. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  653. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  654. # Norwegian (no) - Polish (pl) - Portugese (pt)
  655. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  656. # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
  657. #
  658. AddLanguage ca .ca
  659. AddLanguage cs .cz .cs
  660. AddLanguage da .dk
  661. AddLanguage de .de
  662. AddLanguage el .el
  663. AddLanguage en .en
  664. AddLanguage eo .eo
  665. AddLanguage es .es
  666. AddLanguage et .et
  667. AddLanguage fr .fr
  668. AddLanguage he .he
  669. AddLanguage hr .hr
  670. AddLanguage it .it
  671. AddLanguage ja .ja
  672. AddLanguage ko .ko
  673. AddLanguage ltz .ltz
  674. AddLanguage nl .nl
  675. AddLanguage nn .nn
  676. AddLanguage no .no
  677. AddLanguage pl .po
  678. AddLanguage pt .pt
  679. AddLanguage pt-BR .pt-br
  680. AddLanguage ru .ru
  681. AddLanguage sv .sv
  682. AddLanguage zh-CN .zh-cn
  683. AddLanguage zh-TW .zh-tw
  684.  
  685. #
  686. # LanguagePriority allows you to give precedence to some languages
  687. # in case of a tie during content negotiation.
  688. #
  689. # Just list the languages in decreasing order of preference. We have
  690. # more or less alphabetized them here. You probably want to change this.
  691. #
  692. LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
  693.  
  694. #
  695. # ForceLanguagePriority allows you to serve a result page rather than
  696. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  697. # [in case no accepted languages matched the available variants]
  698. #
  699. ForceLanguagePriority Prefer Fallback
  700.  
  701. #
  702. # Specify a default charset for all content served; this enables
  703. # interpretation of all content as UTF-8 by default. To use the
  704. # default browser choice (ISO-8859-1), or to allow the META tags
  705. # in HTML content to override this choice, comment out this
  706. # directive:
  707. #
  708. AddDefaultCharset UTF-8
  709.  
  710. #
  711. # AddType allows you to add to or override the MIME configuration
  712. # file mime.types for specific file types.
  713. #
  714. #AddType application/x-tar .tgz
  715.  
  716. #
  717. # AddEncoding allows you to have certain browsers uncompress
  718. # information on the fly. Note: Not all browsers support this.
  719. # Despite the name similarity, the following Add* directives have nothing
  720. # to do with the FancyIndexing customization directives above.
  721. #
  722. #AddEncoding x-compress .Z
  723. #AddEncoding x-gzip .gz .tgz
  724.  
  725. # If the AddEncoding directives above are commented-out, then you
  726. # probably should define those extensions to indicate media types:
  727. #
  728. AddType application/x-compress .Z
  729. AddType application/x-gzip .gz .tgz
  730.  
  731. #
  732. # MIME-types for downloading Certificates and CRLs
  733. #
  734. AddType application/x-x509-ca-cert .crt
  735. AddType application/x-pkcs7-crl .crl
  736.  
  737. #
  738. # AddHandler allows you to map certain file extensions to "handlers":
  739. # actions unrelated to filetype. These can be either built into the server
  740. # or added with the Action directive (see below)
  741. #
  742. # To use CGI scripts outside of ScriptAliased directories:
  743. # (You will also need to add "ExecCGI" to the "Options" directive.)
  744. #
  745. #AddHandler cgi-script .cgi
  746.  
  747. #
  748. # For files that include their own HTTP headers:
  749. #
  750. #AddHandler send-as-is asis
  751.  
  752. #
  753. # For type maps (negotiated resources):
  754. # (This is enabled by default to allow the Apache "It Worked" page
  755. # to be distributed in multiple languages.)
  756. #
  757. AddHandler type-map var
  758.  
  759. #
  760. # Filters allow you to process content before it is sent to the client.
  761. #
  762. # To parse .shtml files for server-side includes (SSI):
  763. # (You will also need to add "Includes" to the "Options" directive.)
  764. #
  765. AddType text/html .shtml
  766. AddOutputFilter INCLUDES .shtml
  767.  
  768. #
  769. # Action lets you define media types that will execute a script whenever
  770. # a matching file is called. This eliminates the need for repeated URL
  771. # pathnames for oft-used CGI file processors.
  772. # Format: Action media/type /cgi-script/location
  773. # Format: Action handler-name /cgi-script/location
  774. #
  775.  
  776. #
  777. # Customizable error responses come in three flavors:
  778. # 1) plain text 2) local redirects 3) external redirects
  779. #
  780. # Some examples:
  781. #ErrorDocument 500 "The server made a boo boo."
  782. #ErrorDocument 404 /missing.html
  783. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  784. #ErrorDocument 402 http://www.example.com/subscription_info.html
  785. #
  786.  
  787. #
  788. # Putting this all together, we can internationalize error responses.
  789. #
  790. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  791. # our collection of by-error message multi-language collections. We use
  792. # includes to substitute the appropriate text.
  793. #
  794. # You can modify the messages' appearance without changing any of the
  795. # default HTTP_<error>.html.var files by adding the line:
  796. #
  797. # Alias /error/include/ "/your/include/path/"
  798. #
  799. # which allows you to create your own set of files by starting with the
  800. # /var/www/error/include/ files and
  801. # copying them to /your/include/path/, even on a per-VirtualHost basis.
  802. #
  803.  
  804. Alias /error/ "/var/www/error/"
  805.  
  806. <IfModule mod_negotiation.c>
  807. <IfModule mod_include.c>
  808. <Directory "/var/www/error">
  809. AllowOverride None
  810. Options IncludesNoExec
  811. AddOutputFilter Includes html
  812. AddHandler type-map var
  813. Order allow,deny
  814. Allow from all
  815. LanguagePriority en es de fr
  816. ForceLanguagePriority Prefer Fallback
  817. </Directory>
  818.  
  819. # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  820. # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  821. # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  822. # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  823. # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  824. # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  825. # ErrorDocument 410 /error/HTTP_GONE.html.var
  826. # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  827. # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  828. # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  829. # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  830. # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  831. # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  832. # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  833. # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  834. # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  835. # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  836.  
  837. </IfModule>
  838. </IfModule>
  839.  
  840. #
  841. # The following directives modify normal HTTP response behavior to
  842. # handle known problems with browser implementations.
  843. #
  844. BrowserMatch "Mozilla/2" nokeepalive
  845. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  846. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  847. BrowserMatch "Java/1\.0" force-response-1.0
  848. BrowserMatch "JDK/1\.0" force-response-1.0
  849.  
  850. #
  851. # The following directive disables redirects on non-GET requests for
  852. # a directory that does not include the trailing slash. This fixes a
  853. # problem with Microsoft WebFolders which does not appropriately handle
  854. # redirects for folders with DAV methods.
  855. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  856. #
  857. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  858. BrowserMatch "MS FrontPage" redirect-carefully
  859. BrowserMatch "^WebDrive" redirect-carefully
  860. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  861. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  862. BrowserMatch "^XML Spy" redirect-carefully
  863. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  864. NameVirtualHost *
  865. NameVirtualHost 198.27.88.47
  866.  
  867. #
  868. # Allow server status reports generated by mod_status,
  869. # with the URL of http://servername/server-status
  870. # Change the ".example.com" to match your domain to enable.
  871. #
  872. #<Location /server-status>
  873. # SetHandler server-status
  874. # Order deny,allow
  875. # Deny from all
  876. # Allow from .example.com
  877. #</Location>
  878.  
  879. #
  880. # Allow remote server configuration reports, with the URL of
  881. # http://servername/server-info (requires that mod_info.c be loaded).
  882. # Change the ".example.com" to match your domain to enable.
  883. #
  884. #<Location /server-info>
  885. # SetHandler server-info
  886. # Order deny,allow
  887. # Deny from all
  888. # Allow from .example.com
  889. #</Location>
  890.  
  891. #
  892. # Proxy Server directives. Uncomment the following lines to
  893. # enable the proxy server:
  894. #
  895. #<IfModule mod_proxy.c>
  896. #ProxyRequests On
  897. #
  898. #<Proxy *>
  899. # Order deny,allow
  900. # Deny from all
  901. # Allow from .example.com
  902. #</Proxy>
  903.  
  904. #
  905. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  906. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  907. # Set to one of: Off | On | Full | Block
  908. #
  909. #ProxyVia On
  910.  
  911. #
  912. # To enable a cache of proxied content, uncomment the following lines.
  913. # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
  914. #
  915. #<IfModule mod_disk_cache.c>
  916. # CacheEnable disk /
  917. # CacheRoot "/var/cache/mod_proxy"
  918. #</IfModule>
  919. #
  920.  
  921. #</IfModule>
  922. # End of proxy directives.
  923.  
  924. ### Section 3: Virtual Hosts
  925. #
  926. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  927. # machine you can setup VirtualHost containers for them. Most configurations
  928. # use only name-based virtual hosts so the server doesn't need to worry about
  929. # IP addresses. This is indicated by the asterisks in the directives below.
  930. #
  931. # Please see the documentation at
  932. # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
  933. # for further details before you try to setup virtual hosts.
  934. #
  935. # You may use the command line option '-S' to verify your virtual host
  936. # configuration.
  937.  
  938. #
  939. # Use name-based virtual hosting.
  940. #
  941. #NameVirtualHost *:80
  942. #
  943. # NOTE: NameVirtualHost cannot be used without a port specifier
  944. # (e.g. :80) if mod_ssl is being used, due to the nature of the
  945. # SSL protocol.
  946. #
  947.  
  948. #
  949. # VirtualHost example:
  950. # Almost any Apache directive may go into a VirtualHost container.
  951. # The first VirtualHost section is used for requests without a known
  952. # server name.
  953. #
  954. #<VirtualHost *:80>
  955. # ServerAdmin [email protected]
  956. # DocumentRoot /www/docs/dummy-host.example.com
  957. # ServerName dummy-host.example.com
  958. # ErrorLog logs/dummy-host.example.com-error_log
  959. # CustomLog logs/dummy-host.example.com-access_log common
  960. #</VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment