Advertisement
Guest User

Untitled

a guest
May 12th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.42 KB | None | 0 0
  1. #
  2. # This is the main Apache HTTP server configuration file. It contains the
  3. # configuration directives that give the server its instructions.
  4. # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  7. # for a discussion of each configuration directive.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do. They're here only as hints or reminders. If you are unsure
  11. # consult the online docs. You have been warned.
  12. #
  13. # Configuration and logfile names: If the filenames you specify for many
  14. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  15. # server will use that explicit path. If the filenames do *not* begin
  16. # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
  17. # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
  18. # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
  19. # will be interpreted as '/logs/access_log'.
  20. #
  21. # NOTE: Where filenames are specified, you must use forward slashes
  22. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  23. # If a drive letter is omitted, the drive on which httpd.exe is located
  24. # will be used by default. It is recommended that you always supply
  25. # an explicit drive letter in absolute paths to avoid confusion.
  26.  
  27. ServerSignature On
  28. ServerTokens Full
  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 "C:/Server_Root/Wamp64/bin/apache/apache2.4.18"
  41.  
  42. Define APACHE24 Apache2.4
  43.  
  44. # Mutex: Allows you to set the mutex mechanism and mutex file directory
  45. # for individual mutexes, or change the global defaults
  46. #
  47. # Uncomment and change the directory if mutexes are file-based and the default
  48. # mutex file directory is not on a local disk or is not appropriate for some
  49. # other reason.
  50.  
  51. # Mutex default:logs
  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 0.0.0.0:80
  63. Listen [::0]:80
  64.  
  65. # Dynamic Shared Object (DSO) Support
  66. #
  67. # To be able to use the functionality of a module which was built as a DSO you
  68. # have to place corresponding `LoadModule' lines at this location so the
  69. # directives contained in it are actually available _before_ they are used.
  70. # Statically compiled modules (those listed by `httpd -l') do not need
  71. # to be loaded here.
  72. #
  73. # Example:
  74. # LoadModule foo_module modules/mod_foo.so
  75. #
  76. LoadModule access_compat_module modules/mod_access_compat.so
  77. LoadModule actions_module modules/mod_actions.so
  78. LoadModule alias_module modules/mod_alias.so
  79. LoadModule allowmethods_module modules/mod_allowmethods.so
  80. LoadModule asis_module modules/mod_asis.so
  81. LoadModule auth_basic_module modules/mod_auth_basic.so
  82. LoadModule auth_digest_module modules/mod_auth_digest.so
  83. #LoadModule auth_form_module modules/mod_auth_form.so
  84. #LoadModule authn_anon_module modules/mod_authn_anon.so
  85. LoadModule authn_core_module modules/mod_authn_core.so
  86. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  87. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  88. LoadModule authn_file_module modules/mod_authn_file.so
  89. #LoadModule authn_socache_module modules/mod_authn_socache.so
  90. #LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
  91. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  92. LoadModule authz_core_module modules/mod_authz_core.so
  93. #LoadModule authz_dbd_module modules/mod_authz_dbd.so
  94. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  95. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  96. LoadModule authz_host_module modules/mod_authz_host.so
  97. #LoadModule authz_owner_module modules/mod_authz_owner.so
  98. LoadModule authz_user_module modules/mod_authz_user.so
  99. LoadModule autoindex_module modules/mod_autoindex.so
  100. #LoadModule buffer_module modules/mod_buffer.so
  101. LoadModule cache_module modules/mod_cache.so
  102. LoadModule cache_disk_module modules/mod_cache_disk.so
  103. #LoadModule cache_socache_module modules/mod_cache_socache.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 http2_module modules/mod_http2.so
  121. #LoadModule headers_module modules/mod_headers.so
  122. #LoadModule heartbeat_module modules/mod_heartbeat.so
  123. #LoadModule heartmonitor_module modules/mod_heartmonitor.so
  124. #LoadModule ident_module modules/mod_ident.so
  125. #LoadModule imagemap_module modules/mod_imagemap.so
  126. LoadModule include_module modules/mod_include.so
  127. #LoadModule info_module modules/mod_info.so
  128. LoadModule isapi_module modules/mod_isapi.so
  129. #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
  130. #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
  131. #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
  132. #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
  133. #LoadModule ldap_module modules/mod_ldap.so
  134. #LoadModule logio_module modules/mod_logio.so
  135. LoadModule log_config_module modules/mod_log_config.so
  136. #LoadModule log_debug_module modules/mod_log_debug.so
  137. #LoadModule log_forensic_module modules/mod_log_forensic.so
  138. #LoadModule lua_module modules/mod_lua.so
  139. #LoadModule macro_module modules/mod_macro.so
  140. LoadModule mime_module modules/mod_mime.so
  141. #LoadModule mime_magic_module modules/mod_mime_magic.so
  142. LoadModule negotiation_module modules/mod_negotiation.so
  143. #LoadModule proxy_module modules/mod_proxy.so
  144. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  145. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  146. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  147. #LoadModule proxy_express_module modules/mod_proxy_express.so
  148. #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
  149. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  150. #LoadModule proxy_html_module modules/mod_proxy_html.so
  151. #LoadModule proxy_http_module modules/mod_proxy_http.so
  152. #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
  153. #LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
  154. #LoadModule ratelimit_module modules/mod_ratelimit.so
  155. #LoadModule reflector_module modules/mod_reflector.so
  156. #LoadModule remoteip_module modules/mod_remoteip.so
  157. #LoadModule request_module modules/mod_request.so
  158. #LoadModule reqtimeout_module modules/mod_reqtimeout.so
  159. LoadModule rewrite_module modules/mod_rewrite.so
  160. #LoadModule sed_module modules/mod_sed.so
  161. #LoadModule session_module modules/mod_session.so
  162. #LoadModule session_cookie_module modules/mod_session_cookie.so
  163. #LoadModule session_crypto_module modules/mod_session_crypto.so
  164. #LoadModule session_dbd_module modules/mod_session_dbd.so
  165. LoadModule setenvif_module modules/mod_setenvif.so
  166. #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
  167. #LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
  168. #LoadModule socache_dbm_module modules/mod_socache_dbm.so
  169. #LoadModule socache_memcache_module modules/mod_socache_memcache.so
  170. #LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
  171. #LoadModule speling_module modules/mod_speling.so
  172. #LoadModule ssl_module modules/mod_ssl.so
  173. #LoadModule status_module modules/mod_status.so
  174. #LoadModule substitute_module modules/mod_substitute.so
  175. #LoadModule unique_id_module modules/mod_unique_id.so
  176. LoadModule userdir_module modules/mod_userdir.so
  177. #LoadModule usertrack_module modules/mod_usertrack.so
  178. #LoadModule version_module modules/mod_version.so
  179. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  180. #LoadModule watchdog_module modules/mod_watchdog.so
  181. #LoadModule xml2enc_module modules/mod_xml2enc.so
  182.  
  183. LoadModule php5_module "C:/Server_Root/Wamp64/bin/php/php5.6.19/php5apache2_4.dll"
  184.  
  185. <IfModule unixd_module>
  186.  
  187. # If you wish httpd to run as a different user or group, you must run
  188. # httpd as root initially and it will switch.
  189.  
  190. # User/Group: The name (or #number) of the user/group to run httpd as.
  191. # It is usually good practice to create a dedicated user and group for
  192. # running httpd, as with most system services.
  193.  
  194. User daemon
  195. Group daemon
  196.  
  197. </IfModule>
  198.  
  199. # 'Main' server configuration
  200.  
  201. # The directives in this section set up the values used by the 'main'
  202. # server, which responds to any requests that aren't handled by a
  203. # <VirtualHost> definition. These values also provide defaults for
  204. # any <VirtualHost> containers you may define later in the file.
  205.  
  206. # All of these directives may appear inside <VirtualHost> containers,
  207. # in which case these default settings will be overridden for the
  208. # virtual host being defined.
  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@example.com
  216.  
  217. # ServerName gives the name and port that the server uses to identify itself.
  218. # This can often be determined automatically, but we recommend you specify
  219. # it explicitly to prevent problems during startup.
  220. # If your host doesn't have a registered DNS name, enter its IP address here.
  221.  
  222. ServerName localhost:80
  223.  
  224. # Deny access to the entirety of your server's filesystem. You must
  225. # explicitly permit access to web content directories in other
  226. # <Directory> blocks below.
  227.  
  228. <Directory />
  229. AllowOverride none
  230. Require all denied
  231. </Directory>
  232.  
  233. # Note that from this point forward you must specifically allow
  234. # particular features to be enabled - so if something's not working as
  235. # you might expect, make sure that you have specifically enabled it
  236. # below.
  237.  
  238. HostnameLookups Off
  239.  
  240. # DocumentRoot: The directory out of which you will serve your
  241. # documents. By default, all requests are taken from this directory, but
  242. # symbolic links and aliases may be used to point to other locations.
  243.  
  244. DocumentRoot "C:/Server_Root/Wamp64/www"
  245.  
  246. <Directory "C:/Server_Root/Wamp64/www/">
  247. Options +Indexes +FollowSymLinks
  248. Require all granted
  249. Require local
  250. </Directory>
  251.  
  252. # DirectoryIndex: sets the file that Apache will serve if a directory
  253. # is requested.
  254.  
  255. <IfModule dir_module>
  256. DirectoryIndex index.php index.php3 index.html index.htm
  257. </IfModule>
  258.  
  259. # The following lines prevent .htaccess and .htpasswd files from being
  260. # viewed by Web clients.
  261.  
  262. <Files ".ht*">
  263. Require all denied
  264. </Files>
  265.  
  266. # ErrorLog: The location of the error log file.
  267. # If you do not specify an ErrorLog directive within a <VirtualHost>
  268. # container, error messages relating to that virtual host will be
  269. # logged here. If you *do* define an error logfile for a <VirtualHost>
  270. # container, that host's errors will be logged there and not here.
  271.  
  272. #ErrorLog "logs/error.log"
  273. ErrorLog "C:/Server_Root/Wamp64/logs/apache_error.log"
  274.  
  275. # LogLevel: Control the number of messages logged to the error_log.
  276. # Possible values include: debug, info, notice, warn, error, crit,
  277. # alert, emerg.
  278.  
  279. LogLevel warn
  280.  
  281. <IfModule log_config_module>
  282. #
  283. # The following directives define some format nicknames for use with
  284. # a CustomLog directive (see below).
  285. #
  286. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  287. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  288.  
  289. <IfModule logio_module>
  290. # You need to enable mod_logio.c to use %I and %O
  291. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  292. </IfModule>
  293.  
  294. #
  295. # The location and format of the access logfile (Common Logfile Format).
  296. # If you do not define any access logfiles within a <VirtualHost>
  297. # container, they will be logged here. Contrariwise, if you *do*
  298. # define per-<VirtualHost> access logfiles, transactions will be
  299. # logged therein and *not* in this file.
  300.  
  301. CustomLog "C:/Server_Root/Wamp64/logs/access.log" common
  302.  
  303. # If you prefer a logfile with access, agent, and referer information
  304. # (Combined Logfile Format) you can use the following directive.
  305. #
  306. #CustomLog "logs/access.log" combined
  307. </IfModule>
  308.  
  309. <IfModule alias_module>
  310. #
  311. # Redirect: Allows you to tell clients about documents that used to
  312. # exist in your server's namespace, but do not anymore. The client
  313. # will make a new request for the document at its new location.
  314. # Example:
  315. # Redirect permanent /foo http://www.example.com/bar
  316.  
  317. #
  318. # Alias: Maps web paths into filesystem paths and is used to
  319. # access content that does not live under the DocumentRoot.
  320. # Example:
  321. # Alias /webpath /full/filesystem/path
  322. #
  323. # If you include a trailing / on /webpath then the server will
  324. # require it to be present in the URL. You will also likely
  325. # need to provide a <Directory> section to allow access to
  326. # the filesystem path.
  327.  
  328. #
  329. # ScriptAlias: This controls which directories contain server scripts.
  330. # ScriptAliases are essentially the same as Aliases, except that
  331. # documents in the target directory are treated as applications and
  332. # run by the server when requested rather than as documents sent to the
  333. # client. The same rules about trailing "/" apply to ScriptAlias
  334. # directives as to Alias.
  335. #
  336. ScriptAlias /cgi-bin/ "C:/Server_Root/Wamp64/cgi-bin/"
  337.  
  338. </IfModule>
  339.  
  340. <IfModule cgid_module>
  341. #
  342. # ScriptSock: On threaded servers, designate the path to the UNIX
  343. # socket used to communicate with the CGI daemon of mod_cgid.
  344. #
  345. #Scriptsock cgisock
  346. </IfModule>
  347.  
  348. #
  349. # "c:/Apache24/cgi-bin" should be changed to whatever your ScriptAliased
  350. # CGI directory exists, if you have that configured.
  351. #
  352. <Directory "C:/Server_Root/Wamp64/cgi-bin">
  353. AllowOverride None
  354. Options None
  355. Require all granted
  356. </Directory>
  357.  
  358. <IfModule mime_module>
  359. #
  360. # TypesConfig points to the file containing the list of mappings from
  361. # filename extension to MIME-type.
  362. #
  363. TypesConfig conf/mime.types
  364.  
  365. #
  366. # AddType allows you to add to or override the MIME configuration
  367. # file specified in TypesConfig for specific file types.
  368. #
  369. #AddType application/x-gzip .tgz
  370. #
  371. # AddEncoding allows you to have certain browsers uncompress
  372. # information on the fly. Note: Not all browsers support this.
  373. #
  374. AddEncoding x-compress .Z
  375. AddEncoding x-gzip .gz .tgz
  376. #
  377. # If the AddEncoding directives above are commented-out, then you
  378. # probably should define those extensions to indicate media types:
  379. #
  380. AddType application/x-compress .Z
  381. AddType application/x-gzip .gz .tgz
  382. AddType application/x-httpd-php .php
  383. AddType application/x-httpd-php .php3
  384.  
  385. #
  386. # AddHandler allows you to map certain file extensions to "handlers":
  387. # actions unrelated to filetype. These can be either built into the server
  388. # or added with the Action directive (see below)
  389. #
  390. # To use CGI scripts outside of ScriptAliased directories:
  391. # (You will also need to add "ExecCGI" to the "Options" directive.)
  392. #
  393. #AddHandler cgi-script .cgi
  394.  
  395. # For type maps (negotiated resources):
  396. #AddHandler type-map var
  397.  
  398. #
  399. # Filters allow you to process content before it is sent to the client.
  400. #
  401. # To parse .shtml files for server-side includes (SSI):
  402. # (You will also need to add "Includes" to the "Options" directive.)
  403. #
  404. #AddType text/html .shtml
  405. #AddOutputFilter INCLUDES .shtml
  406. </IfModule>
  407.  
  408. #
  409. # The mod_mime_magic module allows the server to use various hints from the
  410. # contents of the file itself to determine its type. The MIMEMagicFile
  411. # directive tells the module where the hint definitions are located.
  412. #
  413. #MIMEMagicFile conf/magic
  414.  
  415. #
  416. # Customizable error responses come in three flavors:
  417. # 1) plain text 2) local redirects 3) external redirects
  418. #
  419. # Some examples:
  420. #ErrorDocument 500 "The server made a boo boo."
  421. #ErrorDocument 404 /missing.html
  422. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  423. #ErrorDocument 402 http://www.example.com/subscription_info.html
  424. #
  425.  
  426. #
  427. # MaxRanges: Maximum number of Ranges in a request before
  428. # returning the entire resource, or one of the special
  429. # values 'default', 'none' or 'unlimited'.
  430. # Default setting is to accept 200 Ranges.
  431. #MaxRanges unlimited
  432.  
  433. #
  434. # EnableMMAP and EnableSendfile: On systems that support it,
  435. # memory-mapping or the sendfile syscall may be used to deliver
  436. # files. This usually improves server performance, but must
  437. # be turned off when serving from networked-mounted
  438. # filesystems or if support for these functions is otherwise
  439. # broken on your system.
  440. # Defaults: EnableMMAP On, EnableSendfile Off
  441. #
  442. #EnableMMAP off
  443. EnableSendfile off
  444.  
  445. # AcceptFilter: On Windows, none uses accept() rather than AcceptEx() and
  446. # will not recycle sockets between connections. This is useful for network
  447. # adapters with broken driver support, as well as some virtual network
  448. # providers such as vpn drivers, or spam, virus or spyware filters.
  449. AcceptFilter http none
  450. AcceptFilter https none
  451.  
  452. # Supplemental configuration
  453. #
  454. # The configuration files in the conf/extra/ directory can be
  455. # included to add extra features or to modify the default configuration of
  456. # the server, or you may simply copy their contents here and change as
  457. # necessary.
  458.  
  459. # Server-pool management (MPM specific)
  460. #Include conf/extra/httpd-mpm.conf
  461.  
  462. # Multi-language error messages
  463. #Include conf/extra/httpd-multilang-errordoc.conf
  464.  
  465. # Fancy directory listings
  466. Include conf/extra/httpd-autoindex.conf
  467.  
  468. # Language settings
  469. #Include conf/extra/httpd-languages.conf
  470.  
  471. # User home directories
  472. #Include conf/extra/httpd-userdir.conf
  473.  
  474. # Real-time info on requests and configuration
  475. #Include conf/extra/httpd-info.conf
  476.  
  477. # Virtual hosts
  478. Include conf/extra/httpd-vhosts.conf
  479.  
  480. # Local access to the Apache HTTP Server Manual
  481. #Include conf/extra/httpd-manual.conf
  482.  
  483. # Distributed authoring and versioning (WebDAV)
  484. #Include conf/extra/httpd-dav.conf
  485.  
  486. # Various default settings
  487. #Include conf/extra/httpd-default.conf
  488.  
  489. # Configure mod_proxy_html to understand HTML4/XHTML1
  490. <IfModule proxy_html_module>
  491. Include conf/extra/proxy-html.conf
  492. </IfModule>
  493.  
  494. # Secure (SSL/TLS) connections
  495. #Include conf/extra/httpd-ssl.conf
  496. #
  497. # Note: The following must must be present to support
  498. # starting without SSL on platforms with no /dev/random equivalent
  499. # but a statically compiled-in mod_ssl.
  500. #
  501. <IfModule ssl_module>
  502. SSLRandomSeed startup builtin
  503. SSLRandomSeed connect builtin
  504. </IfModule>
  505.  
  506. Include "C:/Server_Root/Wamp64/alias/*"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement