Guest User

Untitled

a guest
Dec 20th, 2011
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.55 KB | None | 0 0
  1. # $Id: httpd.conf 466259 2009-11-15 13:46:12Z oden $
  2. # $HeadURL: http://svn.mandriva.com/svn/packages/cooker/apache-conf/current/SOURCES/httpd.conf $
  3. #
  4. # Based upon the NCSA server configuration files originally by Rob McCool.
  5. #
  6. # This is the main Apache server configuration file. It contains the
  7. # configuration directives that give the server its instructions.
  8. # See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
  9. # the directives.
  10. #
  11. # Do NOT simply read the instructions in here without understanding
  12. # what they do. They're here only as hints or reminders. If you are unsure
  13. # consult the online docs. You have been warned.
  14. #
  15. # The configuration directives are grouped into three basic sections:
  16. # 1. Directives that control the operation of the Apache server process as a
  17. # whole (the 'global environment').
  18. # 2. Directives that define the parameters of the 'main' or 'default' server,
  19. # which responds to requests that aren't handled by a virtual host.
  20. # These directives also provide default values for the settings
  21. # of all virtual hosts.
  22. # 3. Settings for virtual hosts, which allow Web requests to be sent to
  23. # different IP addresses or hostnames and have them handled by the
  24. # same Apache server process.
  25. #
  26. # Configuration and logfile names: If the filenames you specify for many
  27. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  28. # server will use that explicit path. If the filenames do *not* begin
  29. # with "/", the value of ServerRoot is prepended -- so "/var/log/httpd/foo.log"
  30. # with ServerRoot set to "/etc/httpd" will be interpreted by the
  31. # server as "/etc/httpd/logs/httpd/foo.log".
  32. #
  33.  
  34. ### Section 1: Global Environment
  35. #
  36. # The directives in this section affect the overall operation of Apache,
  37. # such as the number of concurrent requests it can handle or where it
  38. # can find its configuration files.
  39. #
  40.  
  41. #
  42. # ServerRoot: The top of the directory tree under which the server's
  43. # configuration, error, and log files are kept.
  44. #
  45. # NOTE! If you intend to place this on an NFS (or otherwise network)
  46. # mounted filesystem then please read the LockFile documentation (available
  47. # at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>);
  48. # you will save yourself a lot of trouble.
  49. #
  50. # Do NOT add a slash at the end of the directory path.
  51. #
  52. ServerRoot "/etc/httpd"
  53.  
  54. # GracefulShutDownTimeout: Specify a timeout after which a gracefully shutdown server will exit.
  55. GracefulShutDownTimeout 120
  56.  
  57. ##
  58. ## Server-Pool Size Regulation (MPM specific)
  59. ##
  60.  
  61.  
  62. # AcceptMutex: Method that Apache uses to serialize multiple children accepting requests
  63. # on network sockets. fcntl is default on Mandriva Linux
  64. # CoreDumpDirectory: Directory where Apache attempts to switch before dumping core
  65. # EnableExceptionHook: Enables a hook that runs exception handlers after a crash
  66. # ListenBackLog: Maximum length of the queue of pending connections
  67. # LockFile: Location of the accept serialization lock file
  68. # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
  69. # MaxClients: Maximum number of child processes that will be created to serve requests
  70. # MaxMemFree: Maximum amount of memory that the main allocator is allowed to hold without calling free()
  71. # MaxRequestsPerChild: Limit on the number of requests that an individual child server will handle during its life
  72. # PidFile: File where the server records the process ID of the daemon
  73. # ReceiveBufferSize: TCP receive buffer size
  74. # ScoreBoardFile: Location of the file used to store coordination data for the child processes
  75. # SendBufferSize: TCP buffer size
  76. # ServerLimit: Upper limit on configurable number of processes
  77. # StartServers: Number of child server processes created at startup
  78. # MinSpareServers: Minimum number of idle children, to handle request spikes
  79. # MaxSpareServers: Maximum number of idle children
  80.  
  81. # prefork MPM [THIS IS THE DEFAULT]
  82. <IfModule mpm_prefork_module>
  83. AcceptMutex fcntl
  84. CoreDumpDirectory /tmp
  85. EnableExceptionHook Off
  86. ListenBacklog 511
  87. LockFile logs/accept.lock
  88. MaxClients 256
  89. MaxMemFree 0
  90. MaxRequestsPerChild 4000
  91. PidFile /var/run/httpd.pid
  92. ReceiveBufferSize 0
  93. # ScoreBoardFile logs/apache_runtime_status
  94. SendBufferSize 0
  95. ServerLimit 256
  96. StartServers 8
  97. MinSpareServers 5
  98. MaxSpareServers 20
  99. </IfModule>
  100.  
  101. # worker MPM
  102. # MaxSpareThreads: Maximum number of idle threads
  103. # MinSpareThreads: Minimum number of idle threads available to handle request spikes
  104. # ThreadLimit: Sets the upper limit on the configurable number of threads per child process
  105. # ThreadsPerChild: Number of threads created by each child process
  106. # ThreadStackSize: The size in bytes of the stack used by threads handling client connections
  107. <IfModule mpm_worker_module>
  108. AcceptMutex fcntl
  109. CoreDumpDirectory /tmp
  110. EnableExceptionHook Off
  111. ListenBacklog 511
  112. LockFile logs/accept.lock
  113. MaxClients 150
  114. MaxMemFree 0
  115. MaxRequestsPerChild 0
  116. MaxSpareThreads 75
  117. MinSpareThreads 25
  118. PidFile /var/run/httpd.pid
  119. ReceiveBufferSize 0
  120. # ScoreBoardFile logs/apache_runtime_status
  121. SendBufferSize 0
  122. ServerLimit 256
  123. StartServers 2
  124. ThreadLimit 64
  125. ThreadsPerChild 25
  126. ThreadStackSize 65536
  127. </IfModule>
  128.  
  129. # event MPM
  130. <IfModule mpm_event_module>
  131. AcceptMutex fcntl
  132. CoreDumpDirectory /tmp
  133. EnableExceptionHook Off
  134. ListenBacklog 511
  135. LockFile logs/accept.lock
  136. MaxClients 150
  137. MaxMemFree 0
  138. MaxRequestsPerChild 0
  139. MaxSpareThreads 75
  140. MinSpareThreads 25
  141. PidFile /var/run/httpd.pid
  142. ReceiveBufferSize 0
  143. # ScoreBoardFile logs/apache_runtime_status
  144. SendBufferSize 0
  145. ServerLimit 256
  146. StartServers 2
  147. ThreadLimit 64
  148. ThreadsPerChild 25
  149. ThreadStackSize 65536
  150. </IfModule>
  151.  
  152. # itk MPM
  153. # AssignUserID - Tie a virtual host to a specific child process.
  154. # MaxClientsVHost - Maximum number of children alive at the same time for this virtual host.
  155. # NiceValue - Set nice value for the given vhost, from -20 (highest priority) to 19 (lowest priority).
  156. <IfModule itk.c>
  157. AcceptMutex fcntl
  158. CoreDumpDirectory /tmp
  159. AssignUserID apache apache
  160. StartServers 8
  161. MinSpareServers 5
  162. MaxSpareServers 20
  163. ServerLimit 256
  164. MaxClients 256
  165. MaxRequestsPerChild 4000
  166. </IfModule>
  167.  
  168. # Peruser MPM
  169. # ServerLimit: Maximum value of MaxClients for this run of Apache
  170. # MaxClients: Maximum number of children alive at the same time
  171. # MinSpareProcessors: Minimum number of idle children,
  172. # to handle request spikes
  173. # MinProcessors: Minimum number of processors per vhost
  174. # MaxProcessors: Maximum number of processors per vhost
  175. # ExpireTimeout: Maximum idle time before a child is killed, 0 to disable
  176. # Multiplexer: Specify a Multiplexer child configuration.
  177. # Processor: Specify a user and group for a specific child process
  178. <IfModule mpm_peruser_module>
  179. ServerLimit 256
  180. MaxClients 256
  181. MinSpareProcessors 2
  182. MaxProcessors 10
  183. MaxRequestsPerChild 1000
  184.  
  185. # kill idle processors after this many seconds (0 to disable)
  186. IdleTimeout 60
  187.  
  188. # kill hung processes after this many seconds (0 to disable)
  189. ExpireTimeout 300
  190.  
  191. # set up a few multiplexer processes running as apache
  192. Multiplexer apache apache
  193. Multiplexer apache apache
  194. Multiplexer apache apache
  195.  
  196. # Processor <user> <group> <chroot>
  197. # chroot is optional
  198. </IfModule>
  199.  
  200. #
  201. # Listen: Allows you to bind Apache to specific IP addresses and/or
  202. # ports, instead of the default. See also the <VirtualHost>
  203. # directive.
  204. #
  205. # Change this to Listen on specific IP addresses as shown below to
  206. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  207. #
  208. #Listen 12.34.56.78:80
  209. Listen 80
  210.  
  211. #
  212. # Dynamic Shared Object (DSO) Support
  213. #
  214. # To be able to use the functionality of a module which was built as a DSO you
  215. # have to place corresponding `LoadModule' lines at this location so the
  216. # directives contained in it are actually available _before_ they are used.
  217. # Statically compiled modules (those listed by `httpd -l') do not need
  218. # to be loaded here.
  219. #
  220. # Example:
  221. # LoadModule foo_module modules/mod_foo.so
  222. #
  223. LoadModule authn_file_module modules/mod_authn_file.so
  224. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  225. LoadModule authn_anon_module modules/mod_authn_anon.so
  226. ## LoadModule authn_dbd_module modules/mod_authn_dbd.so -> available in the apache-mod_authn_dbd package
  227. LoadModule authn_default_module modules/mod_authn_default.so
  228. LoadModule authn_alias_module modules/mod_authn_alias.so
  229. LoadModule authz_host_module modules/mod_authz_host.so
  230. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  231. LoadModule authz_user_module modules/mod_authz_user.so
  232. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  233. LoadModule authz_owner_module modules/mod_authz_owner.so
  234. ## LoadModule authnz_ldap_module modules/mod_authnz_ldap.so -> available in the apache-mod_ldap package
  235. LoadModule authz_default_module modules/mod_authz_default.so
  236. LoadModule auth_basic_module modules/mod_auth_basic.so
  237. LoadModule auth_digest_module modules/mod_auth_digest.so
  238. ## LoadModule cache_module modules/mod_cache.so -> available in the apache-mod_cache package
  239. ## LoadModule disk_cache_module modules/mod_disk_cache.so -> available in the apache-mod_disk_cache package
  240. ## LoadModule mem_cache_module modules/mod_mem_cache.so -> available in the apache-mod_mem_cache package
  241. ## LoadModule dbd_module modules/mod_dbd.so -> available in the apache-mod_dbd package
  242. ## LoadModule bucketeer_module modules/mod_bucketeer.so <- only used for tests and debugging
  243. ## LoadModule dumpio_module modules/mod_dumpio.so <- only used for tests and debugging
  244. #LoadModule echo_module modules/mod_echo.so
  245. #LoadModule example_module modules/mod_example.so
  246. #LoadModule case_filter_module modules/mod_case_filter.so
  247. #LoadModule case_filter_in_module modules/mod_case_filter_in.so
  248. #LoadModule ext_filter_module modules/mod_ext_filter.so
  249. LoadModule include_module modules/mod_include.so
  250. LoadModule filter_module modules/mod_filter.so
  251. LoadModule substitute_module modules/mod_substitute.so
  252. #LoadModule charset_lite_module modules/mod_charset_lite.so
  253. ## LoadModule deflate_module modules/mod_deflate.so -> available in the apache-mod_deflate package
  254. ## LoadModule ldap_module modules/mod_ldap.so -> available in the apache-mod_ldap package
  255. LoadModule log_config_module modules/mod_log_config.so
  256. #LoadModule log_forensic_module modules/mod_log_forensic.so
  257. #LoadModule logio_module modules/mod_logio.so
  258. LoadModule env_module modules/mod_env.so
  259. LoadModule mime_magic_module modules/mod_mime_magic.so
  260. #LoadModule cern_meta_module modules/mod_cern_meta.so
  261. LoadModule expires_module modules/mod_expires.so
  262. LoadModule headers_module modules/mod_headers.so
  263. #LoadModule ident_module modules/mod_ident.so
  264. LoadModule usertrack_module modules/mod_usertrack.so
  265. LoadModule unique_id_module modules/mod_unique_id.so
  266. LoadModule setenvif_module modules/mod_setenvif.so
  267. LoadModule version_module modules/mod_version.so
  268. ## LoadModule proxy_module modules/mod_proxy.so -> available in the apache-mod_proxy package
  269. ## LoadModule proxy_connect_module modules/mod_proxy_connect.so -> available in the apache-mod_proxy package
  270. ## LoadModule proxy_ftp_module modules/mod_proxy_ftp.so -> available in the apache-mod_proxy package
  271. ## LoadModule proxy_http_module modules/mod_proxy_http.so -> available in the apache-mod_proxy package
  272. ## LoadModule proxy_scgi_module modules/mod_proxy_scgi.so -> available in the apache-mod_proxy_scgi package
  273. ## LoadModule proxy_ajp_module modules/mod_proxy_ajp.so -> available in the apache-mod_proxy_ajp package
  274. ## LoadModule proxy_balancer_module modules/mod_proxy_balancer.so -> available in the apache-mod_proxy package
  275. ## LoadModule ssl_module modules/mod_ssl.so -> available in the apache-mod_ssl package
  276. ## LoadModule optional_hook_export_module modules/mod_optional_hook_export.so <- only used for tests
  277. ## LoadModule optional_hook_import_module modules/mod_optional_hook_import.so <- only used for tests
  278. ## LoadModule optional_fn_import_module modules/mod_optional_fn_import.so <- only used for tests
  279. ## LoadModule optional_fn_export_module modules/mod_optional_fn_export.so <- only used for tests
  280. LoadModule mime_module modules/mod_mime.so
  281. ## LoadModule dav_module modules/mod_dav.so -> available in the apache-mod_dav package
  282. LoadModule status_module modules/mod_status.so
  283. LoadModule autoindex_module modules/mod_autoindex.so
  284. #LoadModule asis_module modules/mod_asis.so
  285. LoadModule info_module modules/mod_info.so
  286. ## LoadModule suexec_module modules/mod_suexec.so -> available in the apache-mod_suexec package
  287. LoadModule cgi_module modules/mod_cgi.so
  288. #LoadModule cgid_module modules/mod_cgid.so <- use this with the worker MPM
  289. ## LoadModule dav_fs_module modules/mod_dav_fs.so -> available in the apache-mod_dav package
  290. ## LoadModule dav_lock_module modules/mod_dav_lock.so -> available in the apache-mod_dav package
  291. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  292. LoadModule negotiation_module modules/mod_negotiation.so
  293. LoadModule dir_module modules/mod_dir.so
  294. LoadModule imagemap_module modules/mod_imagemap.so
  295. LoadModule actions_module modules/mod_actions.so
  296. #LoadModule speling_module modules/mod_speling.so
  297. ## LoadModule userdir_module modules/mod_userdir.so -> available in the apache-mod_userdir package
  298. LoadModule alias_module modules/mod_alias.so
  299. LoadModule rewrite_module modules/mod_rewrite.so
  300.  
  301. # Bring in additional module-specific configurations
  302. #
  303. Include modules.d/*.conf
  304.  
  305. # include legacy conf.d during a transition period
  306. Include conf.d/*.conf
  307.  
  308. ### Section 2: 'Main' server configuration
  309. #
  310. # The directives in this section set up the values used by the 'main'
  311. # server, which responds to any requests that aren't handled by a
  312. # <VirtualHost> definition. These values also provide defaults for
  313. # any <VirtualHost> containers you may define later in the file.
  314. #
  315. # All of these directives may appear inside <VirtualHost> containers,
  316. # in which case these default settings will be overridden for the
  317. # virtual host being defined.
  318. #
  319.  
  320. #
  321. # If you wish httpd to run as a different user or group, you must run
  322. # httpd as root initially and it will switch.
  323. #
  324. # User/Group: The name (or #number) of the user/group to run httpd as.
  325. # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  326. # . On HPUX you may not be able to use shared memory as nobody, and the
  327. # suggested workaround is to create a user www and use that user.
  328. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  329. # when the value of (unsigned)Group is above 60000;
  330. # don't use Group #-1 on these systems!
  331. #
  332. User apache
  333. Group apache
  334.  
  335. #
  336. # ServerAdmin: Your address, where problems with the server should be
  337. # e-mailed. This address appears on some server-generated pages, such
  338. # as error documents. e.g. [email protected]
  339. #
  340. ServerAdmin root@localhost
  341.  
  342. #
  343. # ServerName gives the name and port that the server uses to identify itself.
  344. # This can often be determined automatically, but we recommend you specify
  345. # it explicitly to prevent problems during startup.
  346. #
  347. # If this is not set to valid DNS name for your host, server-generated
  348. # redirections will not work. See also the UseCanonicalName directive.
  349. #
  350. # If your host doesn't have a registered DNS name, enter its IP address here.
  351. # You will have to access it by its address anyway, and this will make
  352. # redirections work in a sensible way.
  353. #
  354. #ServerName www.example.com:80
  355.  
  356. #
  357. # Timeout: The number of seconds before receives and sends time out.
  358. #
  359. Timeout 300
  360.  
  361. #
  362. # KeepAlive: Whether or not to allow persistent connections (more than
  363. # one request per connection). Set to "Off" to deactivate.
  364. #
  365. KeepAlive On
  366.  
  367. #
  368. # MaxKeepAliveRequests: The maximum number of requests to allow
  369. # during a persistent connection. Set to 0 to allow an unlimited amount.
  370. # We recommend you leave this number high, for maximum performance.
  371. #
  372. MaxKeepAliveRequests 100
  373.  
  374. #
  375. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  376. # same client on the same connection.
  377. #
  378. KeepAliveTimeout 5
  379.  
  380. #
  381. # UseCanonicalName: Determines how Apache constructs self-referencing
  382. # URLs and the SERVER_NAME and SERVER_PORT variables.
  383. # When set "Off", Apache will use the Hostname and Port supplied
  384. # by the client. When set "On", Apache will use the value of the
  385. # ServerName directive.
  386. #
  387. UseCanonicalName Off
  388.  
  389. #
  390. # ServerTokens
  391. # This directive configures what you return as the Server HTTP response
  392. # Header. The default is 'Full' which sends information about the OS-Type
  393. # and compiled in modules.
  394. # Set to one of: Full | OS | Minor | Minimal | Major | Prod
  395. # where Full conveys the most information, and Prod the least.
  396. #
  397. ServerTokens OS
  398.  
  399. #
  400. # Optionally add a line containing the server version and virtual host
  401. # name to server-generated pages (internal error documents, FTP directory
  402. # listings, mod_status and mod_info output etc., but not CGI generated
  403. # documents or custom error documents).
  404. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  405. # Set to one of: On | Off | EMail
  406. #
  407. ServerSignature On
  408.  
  409. #
  410. # HostnameLookups: Log the names of clients or just their IP addresses
  411. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  412. # The default is off because it'd be overall better for the net if people
  413. # had to knowingly turn this feature on, since enabling it means that
  414. # each client request will result in AT LEAST one lookup request to the
  415. # nameserver.
  416. #
  417. HostnameLookups Off
  418.  
  419. #
  420. # DocumentRoot: The directory out of which you will serve your
  421. # documents. By default, all requests are taken from this directory, but
  422. # symbolic links and aliases may be used to point to other locations.
  423. #
  424. DocumentRoot "/var/www/html"
  425.  
  426. #
  427. # Each directory to which Apache has access can be configured with respect
  428. # to which services and features are allowed and/or disabled in that
  429. # directory (and its subdirectories).
  430. #
  431. # First, we configure the "default" to be a very restrictive set of
  432. # features.
  433. #
  434.  
  435. <Directory />
  436. Options -All -Multiviews
  437. AllowOverride None
  438. Order deny,allow
  439. Deny from all
  440. </Directory>
  441.  
  442. #
  443. # Note that from this point forward you must specifically allow
  444. # particular features to be enabled - so if something's not working as
  445. # you might expect, make sure that you have specifically enabled it
  446. # below.
  447. #
  448.  
  449. #
  450. # This should be changed to whatever you set DocumentRoot to.
  451. #
  452. <Directory "/var/www/html">
  453.  
  454. # Possible values for the Options directive are "None", "All",
  455. # or any combination of:
  456. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  457. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  458. # doesn't give it to you.
  459. # The Options directive is both complicated and important. Please see
  460. # http://httpd.apache.org/docs-2.0/mod/core.html#options
  461. # for more information.
  462.  
  463. Options -Indexes FollowSymLinks MultiViews
  464.  
  465. #
  466. # AllowOverride controls what directives may be placed in .htaccess files.
  467. # It can be "All", "None", or any combination of the keywords:
  468. # Options FileInfo AuthConfig Limit Indexes
  469.  
  470. AllowOverride None
  471.  
  472. # Controls who can get stuff from this server.
  473. Order allow,deny
  474. Allow from all
  475.  
  476. </Directory>
  477.  
  478. #
  479. # DirectoryIndex: sets the file that Apache will serve if a directory
  480. # is requested.
  481. #
  482. # The index.html.var file (a type-map) is used to deliver content-
  483. # negotiated documents. The MultiViews Option can be used for the
  484. # same purpose, but it is much slower.
  485. #
  486.  
  487. <IfModule mod_include.c>
  488. <IfModule mod_dir.c>
  489. DirectoryIndex index.shtml
  490. </IfModule>
  491. </IfModule>
  492.  
  493. <IfModule mod_dir.c>
  494. DirectoryIndex index.html index.html.var index.cgi index.pl index.htm Default.htm default.htm index.xml
  495. </IfModule>
  496.  
  497. #
  498. # AccessFileName: The name of the file to look for in each directory
  499. # for additional configuration directives. See also the AllowOverride
  500. # directive.
  501. #
  502. AccessFileName .htaccess
  503.  
  504. #
  505. # The following lines prevent .htaccess and .htpasswd files from being
  506. # viewed by Web clients.
  507. #
  508. <IfModule mod_authz_host.c>
  509. <FilesMatch "^\.ht">
  510. Order allow,deny
  511. Deny from all
  512. </FilesMatch>
  513. </IfModule>
  514.  
  515. #
  516. # TypesConfig describes where the mime.types file (or equivalent) is
  517. # to be found.
  518. #
  519. <IfModule mod_mime.c>
  520. TypesConfig conf/mime.types
  521. </IfModule>
  522.  
  523. #
  524. # DefaultType is the default MIME type the server will use for a document
  525. # if it cannot otherwise determine one, such as from filename extensions.
  526. # If your server contains mostly text or HTML documents, "text/plain" is
  527. # a good value. If most of your content is binary, such as applications
  528. # or images, you may want to use "application/octet-stream" instead to
  529. # keep browsers from trying to display binary files as though they are
  530. # text.
  531. #
  532. DefaultType text/plain
  533.  
  534. #
  535. # The mod_mime_magic module allows the server to use various hints from the
  536. # contents of the file itself to determine its type. The MIMEMagicFile
  537. # directive tells the module where the hint definitions are located.
  538. #
  539. <IfModule mod_mime_magic.c>
  540. MIMEMagicFile conf/magic
  541. </IfModule>
  542.  
  543.  
  544. #
  545. # EnableMMAP: Control whether memory-mapping is used to deliver
  546. # files (assuming that the underlying OS supports it).
  547. # The default is on; turn this off if you serve from NFS-mounted
  548. # filesystems. On some systems, turning it off (regardless of
  549. # filesystem) can improve performance; for details, please see
  550. # http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap
  551. #
  552. #EnableMMAP off
  553.  
  554. #
  555. # EnableSendfile: Control whether the sendfile kernel support is
  556. # used to deliver files (assuming that the OS supports it).
  557. # The default is on; turn this off if you serve from NFS-mounted
  558. # filesystems. Please see
  559. # http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile
  560. #
  561. #EnableSendfile off
  562.  
  563. #
  564. # ErrorLog: The location of the error log file.
  565. # If you do not specify an ErrorLog directive within a <VirtualHost>
  566. # container, error messages relating to that virtual host will be
  567. # logged here. If you *do* define an error logfile for a <VirtualHost>
  568. # container, that host's errors will be logged there and not here.
  569. #
  570. ErrorLog logs/error_log
  571.  
  572. #
  573. # LogLevel: Control the number of messages logged to the error_log.
  574. # Possible values include: debug, info, notice, warn, error, crit,
  575. # alert, emerg.
  576. #
  577. LogLevel warn
  578.  
  579. #
  580. # The following directives define some format nicknames for use with
  581. # a CustomLog directive (see below).
  582. #
  583. <IfModule mod_log_config.c>
  584. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  585. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  586. LogFormat "%{Referer}i -> %U" referer
  587. LogFormat "%{User-agent}i" agent
  588. LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost
  589.  
  590. <IfModule mod_logio.c>
  591. # You need to enable mod_logio.c to use %I and %O
  592. #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  593. </IfModule>
  594.  
  595. #
  596. # The location and format of the access logfile (Common Logfile Format).
  597. # If you do not define any access logfiles within a <VirtualHost>
  598. # container, they will be logged here. Contrariwise, if you *do*
  599. # define per-<VirtualHost> access logfiles, transactions will be
  600. # logged therein and *not* in this file.
  601. #
  602. #CustomLog logs/access_log common
  603.  
  604. #
  605. # If you would like to have agent and referer logfiles, uncomment the
  606. # following directives.
  607. #
  608. #CustomLog logs/referer_log referer
  609. #CustomLog logs/agent_log agent
  610.  
  611. #
  612. # If you prefer a single logfile with access, agent, and referer information
  613. # (Combined Logfile Format) you can use the following directive.
  614. #
  615. CustomLog logs/access_log combined
  616.  
  617. #Single logfile with access, agent and referer information
  618. #This is the default, if vlogs are not defined for the main server
  619. #CustomLog logs/access_log combined env=!VLOG
  620. #If VLOG is defined in a conf/vhosts.d/*.conf, we use this entry
  621. #CustomLog "|/usr/sbin/advxsplitlogfile" vhost env=VLOG
  622.  
  623. </IfModule>
  624.  
  625.  
  626. #
  627. # Aliases: Add here as many aliases as you need (with no limit). The format is
  628. # Alias fakename realname
  629. #
  630. <IfModule mod_alias.c>
  631. # Note that if you include a trailing / on fakename then the server will
  632. # require it to be present in the URL. So "/icons" isn't aliased in this
  633. # example, only "/icons/". If the fakename is slash-terminated, then the
  634. # realname must also be slash terminated, and if the fakename omits the
  635. # trailing slash, the realname must also omit it.
  636. # We include the /icons/ alias for FancyIndexed directory listings. If you
  637. # do not use FancyIndexing, you may comment this out.
  638. Alias /icons/ "/var/www/icons/"
  639. Alias /error/ "/var/www/error/"
  640.  
  641. # ScriptAlias: This controls which directories contain server scripts.
  642. # ScriptAliases are essentially the same as Aliases, except that
  643. # documents in the realname directory are treated as applications and
  644. # run by the server when requested rather than as documents sent to the client.
  645. # The same rules about trailing "/" apply to ScriptAlias directives as to
  646. # Alias.
  647. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  648. ScriptAlias /protected-cgi-bin/ "/var/www/protected-cgi-bin/"
  649. </IfModule>
  650.  
  651. <Directory "/var/www/icons">
  652. Options -Indexes MultiViews
  653. AllowOverride None
  654. Order allow,deny
  655. Allow from all
  656. </Directory>
  657.  
  658. <IfModule mod_cgid.c>
  659. # Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
  660. # for setting UNIX socket for communicating with cgid.
  661. #Scriptsock /var/run/cgisock
  662. </IfModule>
  663.  
  664. #
  665. # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
  666. # CGI directory exists, if you have that configured.
  667. #
  668. <Directory "/var/www/cgi-bin">
  669. AllowOverride All
  670. Options ExecCGI
  671. Order allow,deny
  672. Allow from all
  673. </Directory>
  674.  
  675. <Directory "/var/www/protected-cgi-bin">
  676. AllowOverride All
  677. Options ExecCGI
  678. Order deny,allow
  679. Deny from all
  680. Allow from 127.0.0.1
  681. #allow from .your_domain.com
  682. </Directory>
  683.  
  684. #
  685. # Redirect allows you to tell clients about documents which used to exist in
  686. # your server's namespace, but do not anymore. This allows you to tell the
  687. # clients where to look for the relocated document.
  688. # Example:
  689. # Redirect permanent /foo http://www.example.com/bar
  690.  
  691. #
  692. # Directives controlling the display of server-generated directory listings.
  693. #
  694. #
  695. # IndexOptions: Controls the appearance of server-generated directory
  696. # listings.
  697. #
  698. <IfModule mod_autoindex.c>
  699. # FancyIndexing is whether you want fancy directory indexing or standard
  700. IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
  701.  
  702. # AddIcon* directives tell the server which icon to show for different
  703. # files or filename extensions. These are only displayed for
  704. # FancyIndexed directories.
  705. AddIconByEncoding (CMP,/icons/compressed.png) x-compress x-gzip
  706.  
  707. AddIconByType (TXT,/icons/text.png) text/*
  708. AddIconByType (IMG,/icons/image2.png) image/*
  709. AddIconByType (SND,/icons/sound2.png) audio/*
  710. AddIconByType (VID,/icons/movie.png) video/*
  711.  
  712. AddIcon /icons/binary.png .bin .exe
  713. AddIcon /icons/binhex.png .hqx
  714. AddIcon /icons/tar.png .tar
  715. AddIcon /icons/world2.png .wrl .wrl.gz .vrml .vrm .iv
  716. AddIcon /icons/compressed.png .Z .z .tgz .gz .zip
  717. AddIcon /icons/a.png .ps .ai .eps
  718. AddIcon /icons/layout.png .html .shtml .htm .pdf
  719. AddIcon /icons/text.png .txt
  720. AddIcon /icons/c.png .c
  721. AddIcon /icons/p.png .pl .py
  722. AddIcon /icons/f.png .for
  723. AddIcon /icons/dvi.png .dvi
  724. AddIcon /icons/uuencoded.png .uu
  725. AddIcon /icons/script.png .conf .sh .shar .csh .ksh .tcl
  726. AddIcon /icons/tex.png .tex
  727. AddIcon /icons/bomb.png core
  728.  
  729. AddIcon /icons/back.png ..
  730. AddIcon /icons/hand.right.png README
  731. AddIcon /icons/folder.png ^^DIRECTORY^^
  732. AddIcon /icons/blank.png ^^BLANKICON^^
  733.  
  734. # DefaultIcon is which icon to show for files which do not have an icon
  735. # explicitly set.
  736. DefaultIcon /icons/unknown.png
  737.  
  738. # AddDescription allows you to place a short description after a file in
  739. # server-generated indexes. These are only displayed for FancyIndexed
  740. # directories.
  741. # Format: AddDescription "description" filename
  742. #AddDescription "GZIP compressed document" .gz
  743. #AddDescription "tar archive" .tar
  744. #AddDescription "GZIP compressed tar archive" .tgz
  745.  
  746. # ReadmeName is the name of the README file the server will look for by
  747. # default, and append to directory listings.
  748. # HeaderName is the name of a file which should be prepended to
  749. # directory indexes.
  750. ReadmeName README.html
  751. HeaderName HEADER.html
  752.  
  753. # IndexIgnore is a set of filenames which directory indexing should ignore
  754. # and not include in the listing. Shell-style wildcarding is permitted.
  755. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  756. </IfModule>
  757. # End of indexing directives.
  758.  
  759. #
  760. # DefaultLanguage and AddLanguage allows you to specify the language of
  761. # a document. You can then use content negotiation to give a browser a
  762. # file in a language the user can understand.
  763. #
  764. # Specify a default language. This means that all data
  765. # going out without a specific language tag (see below) will
  766. # be marked with this one. You probably do NOT want to set
  767. # this unless you are sure it is correct for all cases.
  768. #
  769. # * It is generally better to not mark a page as
  770. # * being a certain language than marking it with the wrong
  771. # * language!
  772. #
  773. # DefaultLanguage nl
  774. #
  775. # Note 1: The suffix does not have to be the same as the language
  776. # keyword --- those with documents in Polish (whose net-standard
  777. # language code is pl) may wish to use "AddLanguage pl .po" to
  778. # avoid the ambiguity with the common suffix for perl scripts.
  779. #
  780. # Note 2: The example entries below illustrate that in some cases
  781. # the two character 'Language' abbreviation is not identical to
  782. # the two character 'Country' code for its country,
  783. # E.g. 'Danmark/dk' versus 'Danish/da'.
  784. #
  785. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  786. # specifier. There is 'work in progress' to fix this and get
  787. # the reference data for rfc1766 cleaned up.
  788. #
  789. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  790. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  791. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  792. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  793. # Norwegian (no) - Polish (pl) - Portugese (pt)
  794. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  795. # Turkish (tr) - Simplified Chinese (zh-CN) - Spanish (es)
  796. # Traditional Chinese (zh-TW)
  797. #
  798.  
  799. <IfModule mod_mime.c>
  800. AddLanguage ca .ca
  801. AddLanguage cs .cz .cs
  802. AddLanguage da .dk
  803. AddLanguage de .de
  804. AddLanguage el .el
  805. AddLanguage en .en
  806. AddLanguage eo .eo
  807. AddLanguage es .es
  808. AddLanguage et .et
  809. AddLanguage fr .fr
  810. AddLanguage he .he
  811. AddLanguage hr .hr
  812. AddLanguage it .it
  813. AddLanguage ja .ja
  814. AddLanguage ko .ko
  815. AddLanguage ltz .ltz
  816. AddLanguage nl .nl
  817. AddLanguage nn .nn
  818. AddLanguage no .no
  819. AddLanguage pl .po
  820. AddLanguage pt .pt
  821. AddLanguage pt-BR .pt-br
  822. AddLanguage ru .ru
  823. AddLanguage sv .sv
  824. AddLanguage tr .tr
  825. AddLanguage zh-CN .zh-cn
  826. AddLanguage zh-TW .zh-tw
  827.  
  828. # LanguagePriority allows you to give precedence to some languages
  829. # in case of a tie during content negotiation.
  830. # Just list the languages in decreasing order of preference. We have
  831. # more or less alphabetized them here. You probably want to change this.
  832. <IfModule mod_negotiation.c>
  833. 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 tr zh-CN zh-TW
  834. </IfModule>
  835.  
  836. # ForceLanguagePriority allows you to serve a result page rather than
  837. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  838. # [in case no accepted languages matched the available variants]
  839. <IfModule mod_negotiation.c>
  840. ForceLanguagePriority Prefer Fallback
  841. </IfModule>
  842.  
  843. # Commonly used filename extensions to character sets. You probably
  844. # want to avoid clashes with the language extensions, unless you
  845. # are good at carefully testing your setup after each change.
  846. # See http://www.iana.org/assignments/character-sets for the
  847. # official list of charset names and their respective RFCs.
  848. AddCharset us-ascii.ascii .us-ascii
  849. AddCharset ISO-8859-1 .iso8859-1 .latin1
  850. AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
  851. AddCharset ISO-8859-3 .iso8859-3 .latin3
  852. AddCharset ISO-8859-4 .iso8859-4 .latin4
  853. AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
  854. AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
  855. AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
  856. AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
  857. AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
  858. AddCharset ISO-8859-10 .iso8859-10 .latin6
  859. AddCharset ISO-8859-13 .iso8859-13
  860. AddCharset ISO-8859-14 .iso8859-14 .latin8
  861. AddCharset ISO-8859-15 .iso8859-15 .latin9
  862. AddCharset ISO-8859-16 .iso8859-16 .latin10
  863. AddCharset ISO-2022-JP .iso2022-jp .jis
  864. AddCharset ISO-2022-KR .iso2022-kr .kis
  865. AddCharset ISO-2022-CN .iso2022-cn .cis
  866. AddCharset Big5 .Big5 .big5
  867.  
  868. # For russian, more than one charset is used (depends on client, mostly):
  869. AddCharset WINDOWS-1251 .cp-1251 .win-1251
  870. AddCharset CP866 .cp866
  871. AddCharset KOI8 .koi8
  872. AddCharset KOI8-E .koi8-e
  873. AddCharset KOI8-r .koi8-r .koi8-ru
  874. AddCharset KOI8-U .koi8-u
  875. AddCharset KOI8-ru .koi8-uk .ua
  876. AddCharset ISO-10646-UCS-2 .ucs2
  877. AddCharset ISO-10646-UCS-4 .ucs4
  878. AddCharset UTF-7 .utf7
  879. AddCharset UTF-8 .utf8
  880. AddCharset UTF-16 .utf16
  881. AddCharset UTF-16BE .utf16be
  882. AddCharset UTF-16LE .utf16le
  883. AddCharset UTF-32 .utf32
  884. AddCharset UTF-32BE .utf32be
  885. AddCharset UTF-32LE .utf32le
  886.  
  887. # The set below does not map to a specific (iso) standard
  888. # but works on a fairly wide range of browsers. Note that
  889. # capitalization actually matters (it should not, but it
  890. # does for some browsers).
  891. #
  892. # See http://www.iana.org/assignments/character-sets
  893. # for a list of sorts. But browsers support few.
  894. AddCharset GB2312 .gb2312 .gb
  895. AddCharset utf-7 .utf7
  896. AddCharset utf-8 .utf8
  897. AddCharset big5 .big5 .b5
  898. AddCharset EUC-TW .euc-tw
  899. AddCharset EUC-JP .euc-jp
  900. AddCharset EUC-KR .euc-kr
  901. AddCharset shift_jis .shift_jis .sjis
  902.  
  903. # Specify a default charset for all pages sent out. This is
  904. # always a good idea and opens the door for future internationalisation
  905. # of your web site, should you ever want it. Specifying it as
  906. # a default does little harm; as the standard dictates that a page
  907. # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
  908. # are merely stating the obvious. There are also some security
  909. # reasons in browsers, related to javascript and URL parsing
  910. # which encourage you to always set a default char set.
  911. #AddDefaultCharset ISO-8859-1
  912. # JMD 2003/09/15 Change to off, since it overrides the META tags
  913. AddDefaultCharset Off
  914.  
  915. # AddType allows you to add to or override the MIME configuration
  916. # file mime.types for specific file types.
  917. #AddType application/x-tar .tgz
  918.  
  919. # AddEncoding allows you to have certain browsers uncompress
  920. # information on the fly. Note: Not all browsers support this.
  921. # Despite the name similarity, the following Add* directives have nothing
  922. # to do with the FancyIndexing customization directives above.
  923. #AddEncoding x-compress .Z
  924. #AddEncoding x-gzip .gz .tgz
  925. # If the AddEncoding directives above are commented-out, then you
  926. # probably should define those extensions to indicate media types:
  927. AddType application/x-compress .Z
  928. AddType application/x-gzip .gz .tgz
  929. AddType image/x-icon .ico
  930.  
  931. # AddHandler allows you to map certain file extensions to "handlers":
  932. # actions unrelated to filetype. These can be either built into the server
  933. # or added with the Action directive (see below)
  934. # To use CGI scripts outside of ScriptAliased directories:
  935. # (You will also need to add "ExecCGI" to the "Options" directive.)
  936. AddHandler cgi-script .cgi
  937.  
  938. # For files that include their own HTTP headers:
  939. #AddHandler send-as-is asis
  940.  
  941. # For server-parsed imagemap files:
  942. AddHandler imap-file map
  943.  
  944. # For type maps (negotiated resources):
  945. # (This is enabled by default to allow the Apache "It Worked" page
  946. # to be distributed in multiple languages.)
  947. AddHandler type-map var
  948.  
  949. # Filters allow you to process content before it is sent to the client.
  950. # To parse .shtml files for server-side includes (SSI):
  951. # (You will also need to add "Includes" to the "Options" directive.)
  952. <IfModule mod_include.c>
  953. AddType text/html .shtml
  954. AddOutputFilter INCLUDES .shtml
  955. </IfModule>
  956. </IfModule>
  957.  
  958. #
  959. # Action lets you define media types that will execute a script whenever
  960. # a matching file is called. This eliminates the need for repeated URL
  961. # pathnames for oft-used CGI file processors.
  962. # Format: Action media/type /cgi-script/location
  963. # Format: Action handler-name /cgi-script/location
  964. #
  965.  
  966. #
  967. # Customizable error responses come in three flavors:
  968. # 1) plain text 2) local redirects 3) external redirects
  969. #
  970. # Some examples:
  971. #ErrorDocument 500 "The server made a boo boo."
  972. #ErrorDocument 404 /missing.html
  973. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  974. #ErrorDocument 402 http://www.example.com/subscription_info.html
  975. #
  976.  
  977. #
  978. # Putting this all together, we can internationalize error responses.
  979. #
  980. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  981. # our collection of by-error message multi-language collections. We use
  982. # includes to substitute the appropriate text.
  983. #
  984. # You can modify the messages' appearance without changing any of the
  985. # default HTTP_<error>.html.var files by adding the line:
  986. #
  987. # Alias /error/include/ "/your/include/path/"
  988. #
  989. # which allows you to create your own set of files by starting with the
  990. # /var/www/error/include/ files and copying them to /your/include/path/,
  991. # even on a per-VirtualHost basis. The default include files will display
  992. # your Apache version number and your ServerAdmin email address regardless
  993. # of the setting of ServerSignature.
  994. #
  995. # The internationalized error documents require mod_alias, mod_include
  996. # and mod_negotiation. To activate them, uncomment the following 30 lines.
  997.  
  998. <IfModule mod_negotiation.c>
  999. <IfModule mod_include.c>
  1000.  
  1001. <Directory "/var/www/error">
  1002. AllowOverride None
  1003. Options IncludesNoExec
  1004. AddOutputFilter Includes html
  1005. AddHandler type-map var
  1006. Order allow,deny
  1007. Allow from all
  1008. LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
  1009. ForceLanguagePriority Prefer Fallback
  1010. </Directory>
  1011.  
  1012. ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  1013. ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  1014. ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  1015. ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  1016. ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  1017. ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  1018. ErrorDocument 410 /error/HTTP_GONE.html.var
  1019. ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  1020. ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  1021. ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  1022. ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  1023. ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  1024. ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  1025. ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  1026. ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  1027. ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  1028. ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  1029.  
  1030. </IfModule>
  1031. </IfModule>
  1032.  
  1033. <IfModule mod_setenvif.c>
  1034. # The following directives modify normal HTTP response behavior to
  1035. # handle known problems with browser implementations.
  1036. BrowserMatch "Mozilla/2" nokeepalive
  1037. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  1038. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  1039. BrowserMatch "Java/1\.0" force-response-1.0
  1040. BrowserMatch "JDK/1\.0" force-response-1.0
  1041.  
  1042. # The following directive disables redirects on non-GET requests for
  1043. # a directory that does not include the trailing slash. This fixes a
  1044. # problem with Microsoft WebFolders which does not appropriately handle
  1045. # redirects for folders with DAV methods.
  1046. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  1047. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  1048. BrowserMatch "MS FrontPage" redirect-carefully
  1049. BrowserMatch "^WebDrive" redirect-carefully
  1050. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  1051. BrowserMatch "^gnome-vfs" redirect-carefully
  1052. BrowserMatch "^XML Spy" redirect-carefully
  1053. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  1054. </IfModule>
  1055.  
  1056. #
  1057. # Get information about the requests being processed by the server
  1058. # and the configuration of the server.
  1059. #
  1060. # Required modules: mod_status (for the server-status handler),
  1061. # mod_info (for the server-info handler)
  1062.  
  1063. #
  1064. # Allow server status reports generated by mod_status,
  1065. # with the URL of http://servername/server-status
  1066. # Change the ".example.com" to match your domain to enable.
  1067. <IfModule mod_status.c>
  1068. <Location /server-status>
  1069. SetHandler server-status
  1070. Order deny,allow
  1071. Deny from all
  1072. allow from 127.0.0.1
  1073. #Allow from .your_domain.com
  1074. </Location>
  1075.  
  1076. # ExtendedStatus controls whether Apache will generate "full" status
  1077. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  1078. # Off) when the "server-status" handler is called. The default is Off.
  1079. ExtendedStatus On
  1080. </IfModule>
  1081.  
  1082. #
  1083. # Allow remote server configuration reports, with the URL of
  1084. # http://servername/server-info (requires that mod_info.c be loaded).
  1085. # Change the ".example.com" to match your domain to enable.
  1086. #
  1087. <IfModule mod_info.c>
  1088. <Location /server-info>
  1089. SetHandler server-info
  1090. Order deny,allow
  1091. Deny from all
  1092. allow from 127.0.0.1
  1093. #Allow from .your_domain.com
  1094. </Location>
  1095. </IfModule>
  1096.  
  1097. <IfModule mod_usertrack.c>
  1098. # This is the default.
  1099. CookieName Apache
  1100. </IfModule>
  1101.  
  1102. <Directory /var/www/html/addon-modules>
  1103. Options Indexes FollowSymLinks
  1104. </Directory>
  1105.  
  1106. <Location /index.shtml>
  1107. Options +Includes
  1108. </Location>
  1109.  
  1110. <IfModule mod_speling.c>
  1111. CheckSpelling On
  1112. AcceptPathInfo On
  1113. </IfModule>
  1114.  
  1115. Include conf/fileprotector.conf
  1116.  
  1117. # webapps configuration section
  1118. # Web applications should be activated _after_ apache has been
  1119. # configured properly.
  1120. Include conf/webapps.d/*.conf
  1121.  
  1122. ### Section 3: Virtual Hosts
  1123. #
  1124. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  1125. # machine you can setup VirtualHost containers for them. Most configurations
  1126. # use only name-based virtual hosts so the server doesn't need to worry about
  1127. # IP addresses. This is indicated by the asterisks in the directives below.
  1128. #
  1129. # Please see the documentation at
  1130. # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
  1131. # for further details before you try to setup virtual hosts.
  1132. #
  1133. # You may use the command line option '-S' to verify your virtual host
  1134. # configuration.
  1135.  
  1136. #
  1137. # Use name-based virtual hosting.
  1138. #
  1139. #NameVirtualHost *:80
  1140. #Setenv VLOG
  1141.  
  1142. #
  1143. # VirtualHost example:
  1144. # Almost any Apache directive may go into a VirtualHost container.
  1145. # The first VirtualHost section is used for requests without a known
  1146. # server name.
  1147. #
  1148. #<VirtualHost *:80>
  1149. # ServerAdmin [email protected]
  1150. # DocumentRoot /www/docs/dummy-host.example.com
  1151. # ServerName dummy-host.example.com
  1152. # ErrorLog /var/log/httpd/dummy-host.example.com-error_log
  1153. # CustomLog /var/log/httpd/dummy-host.example.com-access_log common
  1154. #</VirtualHost>
  1155.  
  1156. ################################################################################
  1157. # virtual hosts configuration section
  1158. # Include virtual hosts, if any
  1159. Include conf/vhosts.d/*.conf
  1160.  
  1161. # disable TRACE (CVE-2009-2823)
  1162. TraceEnable Off
Advertisement
Add Comment
Please, Sign In to add comment