Advertisement
Guest User

apache httpd.conf

a guest
Oct 27th, 2012
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.43 KB | None | 0 0
  1. # IMPORTANT
  2. # ${path} is used to specify EasyPHP installation path
  3.  
  4. #
  5. # This is the main Apache HTTP server configuration file. It contains the
  6. # configuration directives that give the server its instructions.
  7. # See <URL:http://httpd.apache.org/docs/2.4> for detailed information.
  8. # In particular, see
  9. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  10. # for a discussion of each configuration directive.
  11. #
  12. # Do NOT simply read the instructions in here without understanding
  13. # what they do. They're here only as hints or reminders. If you are unsure
  14. # consult the online docs. You have been warned.
  15. #
  16. # Configuration and logfile names: If the filenames you specify for many
  17. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  18. # server will use that explicit path. If the filenames do *not* begin
  19. # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
  20. # with ServerRoot set to "${path}/apache" will be interpreted by the
  21. # server as "${path}/apache/logs/access_log", whereas "/logs/access_log"
  22. # will be interpreted as '/logs/access_log'.
  23. #
  24. # NOTE: Where filenames are specified, you must use forward slashes
  25. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  26. # If a drive letter is omitted, the drive on which httpd.exe is located
  27. # will be used by default. It is recommended that you always supply
  28. # an explicit drive letter in absolute paths to avoid confusion.
  29.  
  30. #
  31. # ServerRoot: The top of the directory tree under which the server's
  32. # configuration, error, and log files are kept.
  33. #
  34. # Do not add a slash at the end of the directory path. If you point
  35. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  36. # Mutex directive, if file-based mutexes are used. If you wish to share the
  37. # same ServerRoot for multiple httpd daemons, you will need to change at
  38. # least PidFile.
  39. #
  40. ServerRoot "${path}/apache"
  41.  
  42. #
  43. # Mutex: Allows you to set the mutex mechanism and mutex file directory
  44. # for individual mutexes, or change the global defaults
  45. #
  46. # Uncomment and change the directory if mutexes are file-based and the default
  47. # mutex file directory is not on a local disk or is not appropriate for some
  48. # other reason.
  49. #
  50. # Mutex default:logs
  51.  
  52.  
  53. #
  54. # Listen: Allows you to bind Apache to specific IP addresses and/or
  55. # ports, instead of the default. See also the <VirtualHost>
  56. # directive.
  57. #
  58. # Change this to Listen on specific IP addresses as shown below to
  59. # prevent Apache from glomming onto all bound IP addresses.
  60. #
  61. #Listen 12.34.56.78:80
  62. #Listen 127.0.0.1:8887
  63. Listen 127.0.0.1:80
  64. #Listen 127.0.0.1:8080
  65. Listen 192.168.1.4:80
  66.  
  67. #
  68. # Dynamic Shared Object (DSO) Support
  69. #
  70. # To be able to use the functionality of a module which was built as a DSO you
  71. # have to place corresponding `LoadModule' lines at this location so the
  72. # directives contained in it are actually available _before_ they are used.
  73. # Statically compiled modules (those listed by `httpd -l') do not need
  74. # to be loaded here.
  75. #
  76. # Example:
  77. # LoadModule foo_module modules/mod_foo.so
  78. #
  79. LoadModule access_compat_module modules/mod_access_compat.so
  80. LoadModule actions_module modules/mod_actions.so
  81. LoadModule alias_module modules/mod_alias.so
  82. LoadModule allowmethods_module modules/mod_allowmethods.so
  83. LoadModule asis_module modules/mod_asis.so
  84. LoadModule auth_basic_module modules/mod_auth_basic.so
  85. #LoadModule auth_digest_module modules/mod_auth_digest.so
  86. #LoadModule authn_anon_module modules/mod_authn_anon.so
  87. LoadModule authn_core_module modules/mod_authn_core.so
  88. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  89. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  90. LoadModule authn_file_module modules/mod_authn_file.so
  91. #LoadModule authn_socache_module modules/mod_authn_socache.so
  92. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  93. LoadModule authz_core_module modules/mod_authz_core.so
  94. #LoadModule authz_dbd_module modules/mod_authz_dbd.so
  95. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  96. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  97. LoadModule authz_host_module modules/mod_authz_host.so
  98. #LoadModule authz_owner_module modules/mod_authz_owner.so
  99. LoadModule authz_user_module modules/mod_authz_user.so
  100. LoadModule autoindex_module modules/mod_autoindex.so
  101. #LoadModule buffer_module modules/mod_buffer.so
  102. #LoadModule cache_module modules/mod_cache.so
  103. #LoadModule cache_disk_module modules/mod_cache_disk.so
  104. #LoadModule cern_meta_module modules/mod_cern_meta.so
  105. LoadModule cgi_module modules/mod_cgi.so
  106. #LoadModule charset_lite_module modules/mod_charset_lite.so
  107. #LoadModule data_module modules/mod_data.so
  108. #LoadModule dav_module modules/mod_dav.so
  109. #LoadModule dav_fs_module modules/mod_dav_fs.so
  110. #LoadModule dav_lock_module modules/mod_dav_lock.so
  111. #LoadModule dbd_module modules/mod_dbd.so
  112. #LoadModule deflate_module modules/mod_deflate.so
  113. LoadModule dir_module modules/mod_dir.so
  114. #LoadModule dumpio_module modules/mod_dumpio.so
  115. LoadModule env_module modules/mod_env.so
  116. #LoadModule expires_module modules/mod_expires.so
  117. #LoadModule ext_filter_module modules/mod_ext_filter.so
  118. #LoadModule file_cache_module modules/mod_file_cache.so
  119. #LoadModule filter_module modules/mod_filter.so
  120. #LoadModule headers_module modules/mod_headers.so
  121. #LoadModule heartbeat_module modules/mod_heartbeat.so
  122. #LoadModule heartmonitor_module modules/mod_heartmonitor.so
  123. #LoadModule ident_module modules/mod_ident.so
  124. #LoadModule imagemap_module modules/mod_imagemap.so
  125. LoadModule include_module modules/mod_include.so
  126. #LoadModule info_module modules/mod_info.so
  127. LoadModule isapi_module modules/mod_isapi.so
  128. #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
  129. #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
  130. #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
  131. #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
  132. #LoadModule ldap_module modules/mod_ldap.so
  133. #LoadModule logio_module modules/mod_logio.so
  134. LoadModule log_config_module modules/mod_log_config.so
  135. #LoadModule log_debug_module modules/mod_log_debug.so
  136. #LoadModule log_forensic_module modules/mod_log_forensic.so
  137. #LoadModule lua_module modules/mod_lua.so
  138. LoadModule mime_module modules/mod_mime.so
  139. #LoadModule mime_magic_module modules/mod_mime_magic.so
  140. LoadModule negotiation_module modules/mod_negotiation.so
  141. #LoadModule proxy_module modules/mod_proxy.so
  142. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  143. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  144. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  145. #LoadModule proxy_express_module modules/mod_proxy_express.so
  146. #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
  147. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  148. #LoadModule proxy_html_module modules/mod_proxy_html.so
  149. #LoadModule proxy_http_module modules/mod_proxy_http.so
  150. #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
  151. #LoadModule ratelimit_module modules/mod_ratelimit.so
  152. #LoadModule reflector_module modules/mod_reflector.so
  153. #LoadModule remoteip_module modules/mod_remoteip.so
  154. #LoadModule request_module modules/mod_request.so
  155. #LoadModule reqtimeout_module modules/mod_reqtimeout.so
  156. LoadModule rewrite_module modules/mod_rewrite.so
  157. #LoadModule sed_module modules/mod_sed.so
  158. #LoadModule session_module modules/mod_session.so
  159. #LoadModule session_cookie_module modules/mod_session_cookie.so
  160. #LoadModule session_crypto_module modules/mod_session_crypto.so
  161. #LoadModule session_dbd_module modules/mod_session_dbd.so
  162. LoadModule setenvif_module modules/mod_setenvif.so
  163. #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
  164. #LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
  165. #LoadModule socache_dbm_module modules/mod_socache_dbm.so
  166. #LoadModule socache_memcache_module modules/mod_socache_memcache.so
  167. #LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
  168. #LoadModule speling_module modules/mod_speling.so
  169. #LoadModule ssl_module modules/mod_ssl.so
  170. #LoadModule status_module modules/mod_status.so
  171. #LoadModule substitute_module modules/mod_substitute.so
  172. #LoadModule unique_id_module modules/mod_unique_id.so
  173. #LoadModule userdir_module modules/mod_userdir.so
  174. #LoadModule usertrack_module modules/mod_usertrack.so
  175. #LoadModule version_module modules/mod_version.so
  176. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  177. #LoadModule watchdog_module modules/mod_watchdog.so
  178. #LoadModule xml2enc_module modules/mod_xml2enc.so
  179.  
  180. LoadModule php5_module "${path}/php/php546x121028092509/php5apache2_4.dll"
  181. PHPIniDir "${path}/apache"
  182. SetEnv TMP "${path}/tmp"
  183.  
  184. <IfModule unixd_module>
  185. #
  186. # If you wish httpd to run as a different user or group, you must run
  187. # httpd as root initially and it will switch.
  188. #
  189. # User/Group: The name (or #number) of the user/group to run httpd as.
  190. # It is usually good practice to create a dedicated user and group for
  191. # running httpd, as with most system services.
  192. #
  193. User daemon
  194. Group daemon
  195.  
  196. </IfModule>
  197.  
  198. # 'Main' server configuration
  199. #
  200. # The directives in this section set up the values used by the 'main'
  201. # server, which responds to any requests that aren't handled by a
  202. # <VirtualHost> definition. These values also provide defaults for
  203. # any <VirtualHost> containers you may define later in the file.
  204. #
  205. # All of these directives may appear inside <VirtualHost> containers,
  206. # in which case these default settings will be overridden for the
  207. # virtual host being defined.
  208. #
  209.  
  210. #
  211. # ServerAdmin: Your address, where problems with the server should be
  212. # e-mailed. This address appears on some server-generated pages, such
  213. # as error documents. e.g. admin@your-domain.com
  214. #
  215. ServerAdmin admin@127.0.0.1
  216.  
  217. #
  218. # ServerName gives the name and port that the server uses to identify itself.
  219. # This can often be determined automatically, but we recommend you specify
  220. # it explicitly to prevent problems during startup.
  221. #
  222. # If your host doesn't have a registered DNS name, enter its IP address here.
  223. #
  224. ServerName 127.0.0.1:8887
  225.  
  226. #
  227. # Deny access to the entirety of your server's filesystem. You must
  228. # explicitly permit access to web content directories in other
  229. # <Directory> blocks below.
  230. #
  231. <Directory />
  232. AllowOverride none
  233. Require all denied
  234. </Directory>
  235.  
  236. #
  237. # Note that from this point forward you must specifically allow
  238. # particular features to be enabled - so if something's not working as
  239. # you might expect, make sure that you have specifically enabled it
  240. # below.
  241. #
  242.  
  243. #
  244. # DocumentRoot: The directory out of which you will serve your
  245. # documents. By default, all requests are taken from this directory, but
  246. # symbolic links and aliases may be used to point to other locations.
  247. #
  248. DocumentRoot "${path}/www"
  249. # This should be changed to whatever you set DocumentRoot to.
  250. # ======================================================
  251. # !!! DO NOT CHANGE THIS LINE AND THE FOLLOWING ONES !!!
  252. # DocumentRootDirectory
  253. <Directory "${path}/www">
  254. #
  255. # Possible values for the Options directive are "None", "All",
  256. # or any combination of:
  257. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  258. #
  259. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  260. # doesn't give it to you.
  261. #
  262. # The Options directive is both complicated and important. Please see
  263. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  264. # for more information.
  265. #
  266. Options Indexes FollowSymLinks
  267.  
  268. #
  269. # AllowOverride controls what directives may be placed in .htaccess files.
  270. # It can be "All", "None", or any combination of the keywords:
  271. # Options FileInfo AuthConfig Limit
  272. #
  273. AllowOverride All
  274.  
  275. #
  276. # Controls who can get stuff from this server.
  277. #
  278. Require all granted
  279.  
  280. </Directory>
  281.  
  282. #
  283. # DirectoryIndex: sets the file that Apache will serve if a directory
  284. # is requested.
  285. #
  286. <IfModule dir_module>
  287. DirectoryIndex index.html index.shtml index.wml index.pwml index.php index.php3 index.php4 index.php5
  288. </IfModule>
  289.  
  290. #
  291. # The following lines prevent .htaccess and .htpasswd files from being
  292. # viewed by Web clients.
  293. #
  294. <Files ".ht*">
  295. Require all denied
  296. </Files>
  297.  
  298. #
  299. # ErrorLog: The location of the error log file.
  300. # If you do not specify an ErrorLog directive within a <VirtualHost>
  301. # container, error messages relating to that virtual host will be
  302. # logged here. If you *do* define an error logfile for a <VirtualHost>
  303. # container, that host's errors will be logged there and not here.
  304. #
  305. ErrorLog "logs/error.log"
  306.  
  307. #
  308. # LogLevel: Control the number of messages logged to the error_log.
  309. # Possible values include: debug, info, notice, warn, error, crit,
  310. # alert, emerg.
  311. #
  312. LogLevel warn
  313.  
  314. <IfModule log_config_module>
  315. #
  316. # The following directives define some format nicknames for use with
  317. # a CustomLog directive (see below).
  318. #
  319. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  320. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  321.  
  322. <IfModule logio_module>
  323. # You need to enable mod_logio.c to use %I and %O
  324. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  325. </IfModule>
  326.  
  327. #
  328. # The location and format of the access logfile (Common Logfile Format).
  329. # If you do not define any access logfiles within a <VirtualHost>
  330. # container, they will be logged here. Contrariwise, if you *do*
  331. # define per-<VirtualHost> access logfiles, transactions will be
  332. # logged therein and *not* in this file.
  333. #
  334. CustomLog "logs/access.log" common
  335.  
  336. #
  337. # If you prefer a logfile with access, agent, and referer information
  338. # (Combined Logfile Format) you can use the following directive.
  339. #
  340. #CustomLog "logs/access.log" combined
  341. </IfModule>
  342.  
  343. <IfModule alias_module>
  344. #
  345. # Redirect: Allows you to tell clients about documents that used to
  346. # exist in your server's namespace, but do not anymore. The client
  347. # will make a new request for the document at its new location.
  348. # Example:
  349. # Redirect permanent /foo http://127.0.0.1/bar
  350.  
  351. #
  352. # Alias: Maps web paths into filesystem paths and is used to
  353. # access content that does not live under the DocumentRoot.
  354. # Example:
  355. # Alias /webpath /full/filesystem/path
  356. Alias /images_easyphp "${path}/home/images_easyphp"
  357. Alias /home "${path}/home"
  358. Alias /modules "${path}/modules"
  359.  
  360. #
  361. # If you include a trailing / on /webpath then the server will
  362. # require it to be present in the URL. You will also likely
  363. # need to provide a <Directory> section to allow access to
  364. # the filesystem path.
  365. <Directory "${path}/home/images_easyphp">
  366. Options Indexes MultiViews
  367. AllowOverride None
  368. Order deny,allow
  369. Allow from 127.0.0.1
  370. Deny from all
  371. Require all granted
  372. </Directory>
  373.  
  374. <Directory "${path}/home">
  375. Options FollowSymLinks Indexes
  376. AllowOverride None
  377. Order deny,allow
  378. Allow from 127.0.0.1
  379. Deny from all
  380. Require all granted
  381. </Directory>
  382.  
  383. <Directory "${path}/modules">
  384. Options FollowSymLinks Indexes
  385. AllowOverride All
  386. Order deny,allow
  387. Allow from 127.0.0.1
  388. Deny from all
  389. Require all granted
  390. </Directory>
  391.  
  392.  
  393. #
  394. # ScriptAlias: This controls which directories contain server scripts.
  395. # ScriptAliases are essentially the same as Aliases, except that
  396. # documents in the target directory are treated as applications and
  397. # run by the server when requested rather than as documents sent to the
  398. # client. The same rules about trailing "/" apply to ScriptAlias
  399. # directives as to Alias.
  400. #
  401. ScriptAlias /cgi-bin/ "${path}/apache/cgi-bin/"
  402.  
  403. </IfModule>
  404.  
  405. <IfModule cgid_module>
  406. #
  407. # ScriptSock: On threaded servers, designate the path to the UNIX
  408. # socket used to communicate with the CGI daemon of mod_cgid.
  409. #
  410. #Scriptsock logs/cgisock
  411. </IfModule>
  412.  
  413. #
  414. # "${path}/apache/cgi-bin" should be changed to whatever your ScriptAliased
  415. # CGI directory exists, if you have that configured.
  416. #
  417. <Directory "${path}/apache/cgi-bin">
  418. AllowOverride None
  419. Options None
  420. Require all granted
  421. </Directory>
  422.  
  423. <IfModule mime_module>
  424. #
  425. # TypesConfig points to the file containing the list of mappings from
  426. # filename extension to MIME-type.
  427. #
  428. TypesConfig conf/mime.types
  429.  
  430. #
  431. # AddType allows you to add to or override the MIME configuration
  432. # file specified in TypesConfig for specific file types.
  433. #
  434. #AddType application/x-gzip .tgz
  435. #
  436. # AddEncoding allows you to have certain browsers uncompress
  437. # information on the fly. Note: Not all browsers support this.
  438. #
  439. #AddEncoding x-compress .Z
  440. #AddEncoding x-gzip .gz .tgz
  441. #
  442. # If the AddEncoding directives above are commented-out, then you
  443. # probably should define those extensions to indicate media types:
  444. #
  445. AddType application/x-compress .Z
  446. AddType application/x-gzip .gz .tgz
  447. AddType application/x-tar .tgz
  448. AddType image/x-icon .ico
  449. AddType application/vnd.wap.wmlc .wmlc
  450. AddType application/x-httpd-php .phtml .pwml .php5 .php4 .php3 .php2 .php .inc
  451. AddType text/vnd.wap.wml .wml
  452. AddType text/vnd.wap.wmlscript .wmls
  453. AddType text/vnd.wap.wmlscriptc .wmlsc
  454. AddType image/vnd.wap.wbmp .wbmp
  455.  
  456. #
  457. # AddHandler allows you to map certain file extensions to "handlers":
  458. # actions unrelated to filetype. These can be either built into the server
  459. # or added with the Action directive (see below)
  460. #
  461. # To use CGI scripts outside of ScriptAliased directories:
  462. # (You will also need to add "ExecCGI" to the "Options" directive.)
  463. #
  464. #AddHandler cgi-script .cgi
  465.  
  466. # For type maps (negotiated resources):
  467. #AddHandler type-map var
  468.  
  469. #
  470. # Filters allow you to process content before it is sent to the client.
  471. #
  472. # To parse .shtml files for server-side includes (SSI):
  473. # (You will also need to add "Includes" to the "Options" directive.)
  474. #
  475. #AddType text/html .shtml
  476. #AddOutputFilter INCLUDES .shtml
  477. </IfModule>
  478.  
  479. #
  480. # The mod_mime_magic module allows the server to use various hints from the
  481. # contents of the file itself to determine its type. The MIMEMagicFile
  482. # directive tells the module where the hint definitions are located.
  483. #
  484. #MIMEMagicFile conf/magic
  485.  
  486. #
  487. # Customizable error responses come in three flavors:
  488. # 1) plain text 2) local redirects 3) external redirects
  489. #
  490. # Some examples:
  491. #ErrorDocument 500 "The server made a boo boo."
  492. #ErrorDocument 404 /missing.html
  493. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  494. #ErrorDocument 402 http://127.0.0.1/subscription_info.html
  495. #
  496.  
  497. #
  498. # MaxRanges: Maximum number of Ranges in a request before
  499. # returning the entire resource, or one of the special
  500. # values 'default', 'none' or 'unlimited'.
  501. # Default setting is to accept 200 Ranges.
  502. #MaxRanges unlimited
  503.  
  504. #
  505. # EnableMMAP and EnableSendfile: On systems that support it,
  506. # memory-mapping or the sendfile syscall may be used to deliver
  507. # files. This usually improves server performance, but must
  508. # be turned off when serving from networked-mounted
  509. # filesystems or if support for these functions is otherwise
  510. # broken on your system.
  511. # Defaults: EnableMMAP On, EnableSendfile Off
  512. #
  513. #EnableMMAP off
  514. #EnableSendfile on
  515.  
  516.  
  517. # ============================================================================
  518. # Multi-language error messages
  519. # Source : conf/extra/httpd-multilang-errordoc.conf
  520. # ============================================================================
  521. #
  522. # The configuration below implements multi-language error documents through
  523. # content-negotiation.
  524. #
  525. # Required modules: mod_alias, mod_authz_core, mod_authz_host,
  526. # mod_include, mod_negotiation
  527. #
  528. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  529. # our collection of by-error message multi-language collections. We use
  530. # includes to substitute the appropriate text.
  531. #
  532. # You can modify the messages' appearance without changing any of the
  533. # default HTTP_<error>.html.var files by adding the line:
  534. #
  535. # Alias /error/include/ "/your/include/path/"
  536. #
  537. # which allows you to create your own set of files by starting with the
  538. # ${path}/apache/error/include/ files and copying them to /your/include/path/,
  539. # even on a per-VirtualHost basis. The default include files will display
  540. # your Apache version number and your ServerAdmin email address regardless
  541. # of the setting of ServerSignature.
  542.  
  543. Alias /error/ "${path}/apache/error/"
  544.  
  545. <Directory "${path}/apache/error">
  546. AllowOverride None
  547. Options IncludesNoExec
  548. AddOutputFilter Includes html
  549. AddHandler type-map var
  550. Require all granted
  551. LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
  552. ForceLanguagePriority Prefer Fallback
  553. </Directory>
  554.  
  555. ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  556. ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  557. ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  558. ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  559. ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  560. ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  561. ErrorDocument 410 /error/HTTP_GONE.html.var
  562. ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  563. ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  564. ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  565. ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  566. ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  567. ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  568. ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  569. ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  570. ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  571. ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  572. # ============================================================================
  573.  
  574.  
  575. # ============================================================================
  576. # Fancy directory listings
  577. # Source : conf/extra/httpd-autoindex.conf
  578. # ============================================================================
  579. #
  580. # Directives controlling the display of server-generated directory listings.
  581. #
  582. # Required modules: mod_authz_core, mod_authz_host,
  583. # mod_autoindex, mod_alias
  584. #
  585. # To see the listing of a directory, the Options directive for the
  586. # directory must include "Indexes", and the directory must not contain
  587. # a file matching those listed in the DirectoryIndex directive.
  588. #
  589.  
  590. #
  591. # IndexOptions: Controls the appearance of server-generated directory
  592. # listings.
  593. #
  594. IndexOptions FancyIndexing HTMLTable VersionSort
  595.  
  596. # We include the /icons/ alias for FancyIndexed directory listings. If
  597. # you do not use FancyIndexing, you may comment this out.
  598. #
  599. Alias /icons/ "${path}/apache/icons/"
  600.  
  601. <Directory "${path}/apache/icons">
  602. Options Indexes MultiViews
  603. AllowOverride None
  604. Require all granted
  605. </Directory>
  606.  
  607. #
  608. # AddIcon* directives tell the server which icon to show for different
  609. # files or filename extensions. These are only displayed for
  610. # FancyIndexed directories.
  611. #
  612. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  613.  
  614. AddIconByType (TXT,/icons/text.gif) text/*
  615. AddIconByType (IMG,/icons/image2.gif) image/*
  616. AddIconByType (SND,/icons/sound2.gif) audio/*
  617. AddIconByType (VID,/icons/movie.gif) video/*
  618.  
  619. AddIcon /icons/binary.gif .bin .exe
  620. AddIcon /icons/binhex.gif .hqx
  621. AddIcon /icons/tar.gif .tar
  622. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  623. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  624. AddIcon /icons/a.gif .ps .ai .eps
  625. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  626. AddIcon /icons/text.gif .txt
  627. AddIcon /icons/c.gif .c
  628. AddIcon /icons/p.gif .pl .py
  629. AddIcon /icons/f.gif .for
  630. AddIcon /icons/dvi.gif .dvi
  631. AddIcon /icons/uuencoded.gif .uu
  632. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  633. AddIcon /icons/tex.gif .tex
  634. AddIcon /icons/bomb.gif core
  635.  
  636. AddIcon /icons/back.gif ..
  637. AddIcon /icons/hand.right.gif README
  638. AddIcon /icons/folder.gif ^^DIRECTORY^^
  639. AddIcon /icons/blank.gif ^^BLANKICON^^
  640.  
  641. #
  642. # DefaultIcon is which icon to show for files which do not have an icon
  643. # explicitly set.
  644. #
  645. DefaultIcon /icons/unknown.gif
  646.  
  647. #
  648. # AddDescription allows you to place a short description after a file in
  649. # server-generated indexes. These are only displayed for FancyIndexed
  650. # directories.
  651. # Format: AddDescription "description" filename
  652. #
  653. AddDescription "GZIP compressed document" .gz
  654. AddDescription "tar archive" .tar
  655. AddDescription "GZIP compressed tar archive" .tgz
  656.  
  657. #
  658. # ReadmeName is the name of the README file the server will look for by
  659. # default, and append to directory listings.
  660. #
  661. # HeaderName is the name of a file which should be prepended to
  662. # directory indexes.
  663. ReadmeName /icons/FancyIndexing/readme.html
  664. HeaderName /icons/FancyIndexing/header.html
  665.  
  666. #
  667. # IndexIgnore is a set of filenames which directory indexing should ignore
  668. # and not include in the listing. Shell-style wildcarding is permitted.
  669. #
  670. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  671. # ============================================================================
  672.  
  673.  
  674. # ============================================================================
  675. # Distributed authoring and versioning (WebDAV)
  676. # Source : conf/extra/httpd-dav.conf
  677. # ============================================================================
  678. # #
  679. # # Required modules: mod_alias, mod_auth_digest, mod_authn_core, mod_authn_file,
  680. # # mod_authz_core, mod_authz_user, mod_dav, mod_dav_fs,
  681. # # mod_setenvif
  682. #
  683. # # The following example gives DAV write access to a directory called
  684. # # "uploads" under the ServerRoot directory.
  685. # #
  686. # # The User/Group specified in httpd.conf needs to have write permissions
  687. # # on the directory where the DavLockDB is placed and on any directory where
  688. # # "Dav On" is specified.
  689. #
  690. # DavLockDB "${path}/apache/var/DavLock"
  691. #
  692. # Alias /uploads "${path}/apache/uploads"
  693. #
  694. # <Directory "${path}/apache/uploads">
  695. # Dav On
  696. #
  697. # AuthType Digest
  698. # AuthName DAV-upload
  699. # # You can use the htdigest program to create the password database:
  700. # # htdigest -c "${path}/apache/user.passwd" DAV-upload admin
  701. # AuthUserFile "${path}/apache/user.passwd"
  702. # AuthDigestProvider file
  703. #
  704. # # Allow universal read-access, but writes are restricted
  705. # # to the admin user.
  706. # <RequireAny>
  707. # Require method GET POST OPTIONS
  708. # Require user admin
  709. # </RequireAny>
  710. # </Directory>
  711. #
  712. # #
  713. # # The following directives disable redirects on non-GET requests for
  714. # # a directory that does not include the trailing slash. This fixes a
  715. # # problem with several clients that do not appropriately handle
  716. # # redirects for folders with DAV methods.
  717. # #
  718. # BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  719. # BrowserMatch "MS FrontPage" redirect-carefully
  720. # BrowserMatch "^WebDrive" redirect-carefully
  721. # BrowserMatch "^WebDAVFS/1.[01234]" redirect-carefully
  722. # BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  723. # BrowserMatch "^XML Spy" redirect-carefully
  724. # BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  725. # BrowserMatch " Konqueror/4" redirect-carefully
  726.  
  727. # ============================================================================
  728.  
  729.  
  730. # ============================================================================
  731. # Virtual hosts
  732. # Source : conf/extra/httpd-vhosts.conf
  733. # ============================================================================
  734. # #
  735. # # If you want to maintain multiple domains/hostnames on your
  736. # # machine you can setup VirtualHost containers for them. Most configurations
  737. # # use only name-based virtual hosts so the server doesn't need to worry about
  738. # # IP addresses. This is indicated by the asterisks in the directives below.
  739. # #
  740. # # Please see the documentation at
  741. # # <URL:http://httpd.apache.org/docs/2.4/vhosts/>
  742. # # for further details before you try to setup virtual hosts.
  743. # #
  744. # # You may use the command line option '-S' to verify your virtual host
  745. # # configuration.
  746. #
  747. # #
  748. # # VirtualHost example:
  749. # # Almost any Apache directive may go into a VirtualHost container.
  750. # # The first VirtualHost section is used for all requests that do not
  751. # # match a ServerName or ServerAlias in any <VirtualHost> block.
  752. # #
  753. # <VirtualHost *:8887>
  754. # ServerAdmin webmaster@dummy-host.127.0.0.1
  755. # DocumentRoot "${path}/apache/docs/dummy-host.127.0.0.1"
  756. # ServerName dummy-host.127.0.0.1
  757. # ServerAlias www.dummy-host.127.0.0.1
  758. # ErrorLog "logs/dummy-host.127.0.0.1-error.log"
  759. # CustomLog "logs/dummy-host.127.0.0.1-access.log" common
  760. # </VirtualHost>
  761. #
  762. # <VirtualHost *:8887>
  763. # ServerAdmin webmaster@dummy-host2.127.0.0.1
  764. # DocumentRoot "${path}/apache/docs/dummy-host2.127.0.0.1"
  765. # ServerName dummy-host2.127.0.0.1
  766. # ErrorLog "logs/dummy-host2.127.0.0.1-error.log"
  767. # CustomLog "logs/dummy-host2.127.0.0.1-access.log" common
  768. # </VirtualHost>
  769. # ============================================================================
  770.  
  771.  
  772. # ============================================================================
  773. # Secure (SSL/TLS) connections
  774. # Source : conf/extra/httpd-ssl.conf
  775. # ============================================================================
  776. # #
  777. # # This is the Apache server configuration file providing SSL support.
  778. # # It contains the configuration directives to instruct the server how to
  779. # # serve pages over an https connection. For detailed information about these
  780. # # directives see <URL:http://httpd.apache.org/docs/2.4/mod/mod_ssl.html>
  781. # #
  782. # # Do NOT simply read the instructions in here without understanding
  783. # # what they do. They're here only as hints or reminders. If you are unsure
  784. # # consult the online docs. You have been warned.
  785. # #
  786. # # Required modules: mod_log_config, mod_setenvif, mod_ssl,
  787. # # socache_shmcb_module (for default value of SSLSessionCache)
  788. #
  789. # #
  790. # # Pseudo Random Number Generator (PRNG):
  791. # # Configure one or more sources to seed the PRNG of the SSL library.
  792. # # The seed data should be of good random quality.
  793. # # WARNING! On some platforms /dev/random blocks if not enough entropy
  794. # # is available. This means you then cannot use the /dev/random device
  795. # # because it would lead to very long connection times (as long as
  796. # # it requires to make more entropy available). But usually those
  797. # # platforms additionally provide a /dev/urandom device which doesn't
  798. # # block. So, if available, use this one instead. Read the mod_ssl User
  799. # # Manual for more details.
  800. # #
  801. # #SSLRandomSeed startup file:/dev/random 512
  802. # #SSLRandomSeed startup file:/dev/urandom 512
  803. # #SSLRandomSeed connect file:/dev/random 512
  804. # #SSLRandomSeed connect file:/dev/urandom 512
  805. #
  806. #
  807. # #
  808. # # When we also provide SSL we have to listen to the
  809. # # standard HTTP port (see above) and to the HTTPS port
  810. # #
  811. # # Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
  812. # # Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
  813. # #
  814. # Listen 443
  815. #
  816. # ##
  817. # ## SSL Global Context
  818. # ##
  819. # ## All SSL configuration in this context applies both to
  820. # ## the main server and all SSL-enabled virtual hosts.
  821. # ##
  822. #
  823. # # SSL Cipher Suite:
  824. # # List the ciphers that the client is permitted to negotiate.
  825. # # See the mod_ssl documentation for a complete list.
  826. # SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
  827. #
  828. # # Speed-optimized SSL Cipher configuration:
  829. # # If speed is your main concern (on busy HTTPS servers e.g.),
  830. # # you might want to force clients to specific, performance
  831. # # optimized ciphers. In this case, prepend those ciphers
  832. # # to the SSLCipherSuite list, and enable SSLHonorCipherOrder.
  833. # # Caveat: by giving precedence to RC4-SHA and AES128-SHA
  834. # # (as in the example below), most connections will no longer
  835. # # have perfect forward secrecy - if the server's key is
  836. # # compromised, captures of past or future traffic must be
  837. # # considered compromised, too.
  838. # #SSLCipherSuite RC4-SHA:AES128-SHA:HIGH:MEDIUM:!aNULL:!MD5
  839. # #SSLHonorCipherOrder on
  840. #
  841. # # Pass Phrase Dialog:
  842. # # Configure the pass phrase gathering process.
  843. # # The filtering dialog program (`builtin' is an internal
  844. # # terminal dialog) has to provide the pass phrase on stdout.
  845. # SSLPassPhraseDialog builtin
  846. #
  847. # # Inter-Process Session Cache:
  848. # # Configure the SSL Session Cache: First the mechanism
  849. # # to use and second the expiring timeout (in seconds).
  850. # #SSLSessionCache "dbm:${path}/apache/logs/ssl_scache"
  851. # SSLSessionCache "shmcb:${path}/apache/logs/ssl_scache(512000)"
  852. # SSLSessionCacheTimeout 300
  853. #
  854. # ##
  855. # ## SSL Virtual Host Context
  856. # ##
  857. #
  858. # <VirtualHost _default_:443>
  859. #
  860. # # General setup for the virtual host
  861. # DocumentRoot "${path}/www"
  862. # ServerName 127.0.0.1:443
  863. # ServerAdmin admin@127.0.0.1
  864. # ErrorLog "${path}/apache/logs/error.log"
  865. # TransferLog "${path}/apache/logs/access.log"
  866. #
  867. # # SSL Engine Switch:
  868. # # Enable/Disable SSL for this virtual host.
  869. # SSLEngine on
  870. #
  871. # # Server Certificate:
  872. # # Point SSLCertificateFile at a PEM encoded certificate. If
  873. # # the certificate is encrypted, then you will be prompted for a
  874. # # pass phrase. Note that a kill -HUP will prompt again. Keep
  875. # # in mind that if you have both an RSA and a DSA certificate you
  876. # # can configure both in parallel (to also allow the use of DSA
  877. # # ciphers, etc.)
  878. # # Some ECC cipher suites (http://www.ietf.org/rfc/rfc4492.txt)
  879. # # require an ECC certificate which can also be configured in
  880. # # parallel.
  881. # SSLCertificateFile "${path}/apache/conf/server.crt"
  882. # #SSLCertificateFile "${path}/apache/conf/server-dsa.crt"
  883. # #SSLCertificateFile "${path}/apache/conf/server-ecc.crt"
  884. #
  885. # # Server Private Key:
  886. # # If the key is not combined with the certificate, use this
  887. # # directive to point at the key file. Keep in mind that if
  888. # # you've both a RSA and a DSA private key you can configure
  889. # # both in parallel (to also allow the use of DSA ciphers, etc.)
  890. # # ECC keys, when in use, can also be configured in parallel
  891. # SSLCertificateKeyFile "${path}/apache/conf/server.key"
  892. # #SSLCertificateKeyFile "${path}/apache/conf/server-dsa.key"
  893. # #SSLCertificateKeyFile "${path}/apache/conf/server-ecc.key"
  894. #
  895. # # Server Certificate Chain:
  896. # # Point SSLCertificateChainFile at a file containing the
  897. # # concatenation of PEM encoded CA certificates which form the
  898. # # certificate chain for the server certificate. Alternatively
  899. # # the referenced file can be the same as SSLCertificateFile
  900. # # when the CA certificates are directly appended to the server
  901. # # certificate for convenience.
  902. # #SSLCertificateChainFile "${path}/apache/conf/server-ca.crt"
  903. #
  904. # # Certificate Authority (CA):
  905. # # Set the CA certificate verification path where to find CA
  906. # # certificates for client authentication or alternatively one
  907. # # huge file containing all of them (file must be PEM encoded)
  908. # # Note: Inside SSLCACertificatePath you need hash symlinks
  909. # # to point to the certificate files. Use the provided
  910. # # Makefile to update the hash symlinks after changes.
  911. # #SSLCACertificatePath "${path}/apache/conf/ssl.crt"
  912. # #SSLCACertificateFile "${path}/apache/conf/ssl.crt/ca-bundle.crt"
  913. #
  914. # # Certificate Revocation Lists (CRL):
  915. # # Set the CA revocation path where to find CA CRLs for client
  916. # # authentication or alternatively one huge file containing all
  917. # # of them (file must be PEM encoded).
  918. # # The CRL checking mode needs to be configured explicitly
  919. # # through SSLCARevocationCheck (defaults to "none" otherwise).
  920. # # Note: Inside SSLCARevocationPath you need hash symlinks
  921. # # to point to the certificate files. Use the provided
  922. # # Makefile to update the hash symlinks after changes.
  923. # #SSLCARevocationPath "${path}/apache/conf/ssl.crl"
  924. # #SSLCARevocationFile "${path}/apache/conf/ssl.crl/ca-bundle.crl"
  925. # #SSLCARevocationCheck chain
  926. #
  927. # # Client Authentication (Type):
  928. # # Client certificate verification type and depth. Types are
  929. # # none, optional, require and optional_no_ca. Depth is a
  930. # # number which specifies how deeply to verify the certificate
  931. # # issuer chain before deciding the certificate is not valid.
  932. # #SSLVerifyClient require
  933. # #SSLVerifyDepth 10
  934. #
  935. # # Access Control:
  936. # # With SSLRequire you can do per-directory access control based
  937. # # on arbitrary complex boolean expressions containing server
  938. # # variable checks and other lookup directives. The syntax is a
  939. # # mixture between C and Perl. See the mod_ssl documentation
  940. # # for more details.
  941. # #<Location />
  942. # #SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
  943. # # and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
  944. # # and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
  945. # # and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
  946. # # and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \
  947. # # or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
  948. # #</Location>
  949. #
  950. # # SSL Engine Options:
  951. # # Set various options for the SSL engine.
  952. # # o FakeBasicAuth:
  953. # # Translate the client X.509 into a Basic Authorisation. This means that
  954. # # the standard Auth/DBMAuth methods can be used for access control. The
  955. # # user name is the `one line' version of the client's X.509 certificate.
  956. # # Note that no password is obtained from the user. Every entry in the user
  957. # # file needs this password: `xxj31ZMTZzkVA'.
  958. # # o ExportCertData:
  959. # # This exports two additional environment variables: SSL_CLIENT_CERT and
  960. # # SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
  961. # # server (always existing) and the client (only existing when client
  962. # # authentication is used). This can be used to import the certificates
  963. # # into CGI scripts.
  964. # # o StdEnvVars:
  965. # # This exports the standard SSL/TLS related `SSL_*' environment variables.
  966. # # Per default this exportation is switched off for performance reasons,
  967. # # because the extraction step is an expensive operation and is usually
  968. # # useless for serving static content. So one usually enables the
  969. # # exportation for CGI and SSI requests only.
  970. # # o StrictRequire:
  971. # # This denies access when "SSLRequireSSL" or "SSLRequire" applied even
  972. # # under a "Satisfy any" situation, i.e. when it applies access is denied
  973. # # and no other module can change it.
  974. # # o OptRenegotiate:
  975. # # This enables optimized SSL connection renegotiation handling when SSL
  976. # # directives are used in per-directory context.
  977. # #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
  978. # <FilesMatch "\.(cgi|shtml|phtml|php)$">
  979. # SSLOptions +StdEnvVars
  980. # </FilesMatch>
  981. # <Directory "${path}/apache/cgi-bin">
  982. # SSLOptions +StdEnvVars
  983. # </Directory>
  984. #
  985. # # SSL Protocol Adjustments:
  986. # # The safe and default but still SSL/TLS standard compliant shutdown
  987. # # approach is that mod_ssl sends the close notify alert but doesn't wait for
  988. # # the close notify alert from client. When you need a different shutdown
  989. # # approach you can use one of the following variables:
  990. # # o ssl-unclean-shutdown:
  991. # # This forces an unclean shutdown when the connection is closed, i.e. no
  992. # # SSL close notify alert is sent or allowed to be received. This violates
  993. # # the SSL/TLS standard but is needed for some brain-dead browsers. Use
  994. # # this when you receive I/O errors because of the standard approach where
  995. # # mod_ssl sends the close notify alert.
  996. # # o ssl-accurate-shutdown:
  997. # # This forces an accurate shutdown when the connection is closed, i.e. a
  998. # # SSL close notify alert is send and mod_ssl waits for the close notify
  999. # # alert of the client. This is 100% SSL/TLS standard compliant, but in
  1000. # # practice often causes hanging connections with brain-dead browsers. Use
  1001. # # this only for browsers where you know that their SSL implementation
  1002. # # works correctly.
  1003. # # Notice: Most problems of broken clients are also related to the HTTP
  1004. # # keep-alive facility, so you usually additionally want to disable
  1005. # # keep-alive for those clients, too. Use variable "nokeepalive" for this.
  1006. # # Similarly, one has to force some clients to use HTTP/1.0 to workaround
  1007. # # their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
  1008. # # "force-response-1.0" for this.
  1009. # BrowserMatch "MSIE [2-5]" \
  1010. # nokeepalive ssl-unclean-shutdown \
  1011. # downgrade-1.0 force-response-1.0
  1012. #
  1013. # # Per-Server Logging:
  1014. # # The home of a custom SSL log file. Use this when you want a
  1015. # # compact non-error SSL logfile on a virtual host basis.
  1016. # CustomLog "${path}/apache/logs/ssl_request.log" \
  1017. # "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  1018. #
  1019. # </VirtualHost>
  1020. # # Note: The following must must be present to support
  1021. # # starting without SSL on platforms with no /dev/random equivalent
  1022. # # but a statically compiled-in mod_ssl.
  1023. # #
  1024. # <IfModule ssl_module>
  1025. # SSLRandomSeed startup builtin
  1026. # SSLRandomSeed connect builtin
  1027. # </IfModule>
  1028. # ============================================================================
  1029.  
  1030.  
  1031. # Supplemental configuration
  1032. #
  1033. # The configuration files in the conf/extra/ directory can be
  1034. # included to add extra features or to modify the default configuration of
  1035. # the server, or you may simply copy their contents here and change as
  1036. # necessary.
  1037.  
  1038.  
  1039. # Server-pool management (MPM specific)
  1040. #Include conf/extra/httpd-mpm.conf
  1041.  
  1042. # Language settings
  1043. #Include conf/extra/httpd-languages.conf
  1044.  
  1045. # User home directories
  1046. #Include conf/extra/httpd-userdir.conf
  1047.  
  1048. # Real-time info on requests and configuration
  1049. #Include conf/extra/httpd-info.conf
  1050.  
  1051. # Various default settings
  1052. #Include conf/extra/httpd-default.conf
  1053.  
  1054. # Configure mod_proxy_html to understand HTML4/XHTML1
  1055. <IfModule proxy_html_module>
  1056. Include conf/extra/proxy-html.conf
  1057. </IfModule>
  1058.  
  1059.  
  1060. # ============================================================================
  1061. # PHP Timezone
  1062. <IfModule mod_php5.c>
  1063. php_value date.timezone "Europe/Paris"
  1064. </IfModule>
  1065. # ============================================================================
  1066.  
  1067.  
  1068. # == !!! DO NOT REMOVE !!! ===================================================
  1069. ### Alias EasyPHP
  1070. # ============================================================================
  1071. #alias
  1072. #alias
  1073. # ============================================================================
  1074. ### Alias End
  1075. # ============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement