Guest User

Untitled

a guest
Jun 15th, 2018
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.95 KB | None | 0 0
  1. # This is the main Apache HTTP server configuration file. It contains the
  2. # configuration directives that give the server its instructions.
  3. # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
  4. # In particular, see
  5. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  6. # for a discussion of each configuration directive.
  7. #
  8. # Do NOT simply read the instructions in here without understanding
  9. # what they do. They're here only as hints or reminders. If you are unsure
  10. # consult the online docs. You have been warned.
  11. #
  12. # Configuration and logfile names: If the filenames you specify for many
  13. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  14. # server will use that explicit path. If the filenames do *not* begin
  15. # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
  16. # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
  17. # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
  18. # will be interpreted as '/logs/access_log'.
  19.  
  20. #
  21. # ServerRoot: The top of the directory tree under which the server's
  22. # configuration, error, and log files are kept.
  23. #
  24. # Do not add a slash at the end of the directory path. If you point
  25. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  26. # Mutex directive, if file-based mutexes are used. If you wish to share the
  27. # same ServerRoot for multiple httpd daemons, you will need to change at
  28. # least PidFile.
  29. #
  30. ServerRoot "/usr/local"
  31.  
  32. #
  33. # Mutex: Allows you to set the mutex mechanism and mutex file directory
  34. # for individual mutexes, or change the global defaults
  35. #
  36. # Uncomment and change the directory if mutexes are file-based and the default
  37. # mutex file directory is not on a local disk or is not appropriate for some
  38. # other reason.
  39. #
  40. # Mutex default:/var/run
  41.  
  42. #
  43. # Listen: Allows you to bind Apache to specific IP addresses and/or
  44. # ports, instead of the default. See also the <VirtualHost>
  45. # directive.
  46. #
  47. # Change this to Listen on specific IP addresses as shown below to
  48. # prevent Apache from glomming onto all bound IP addresses.
  49. [ Read 565 lines ]
  50.  
  51. root@firewall:/usr/local/etc/apache24 # cat httpd.conf
  52.  
  53. # This is the main Apache HTTP server configuration file. It contains the
  54. # configuration directives that give the server its instructions.
  55. # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
  56. # In particular, see
  57. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  58. # for a discussion of each configuration directive.
  59. #
  60. # Do NOT simply read the instructions in here without understanding
  61. # what they do. They're here only as hints or reminders. If you are unsure
  62. # consult the online docs. You have been warned.
  63. #
  64. # Configuration and logfile names: If the filenames you specify for many
  65. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  66. # server will use that explicit path. If the filenames do *not* begin
  67. # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
  68. # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
  69. # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
  70. # will be interpreted as '/logs/access_log'.
  71.  
  72. #
  73. # ServerRoot: The top of the directory tree under which the server's
  74. # configuration, error, and log files are kept.
  75. #
  76. # Do not add a slash at the end of the directory path. If you point
  77. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  78. # Mutex directive, if file-based mutexes are used. If you wish to share the
  79. # same ServerRoot for multiple httpd daemons, you will need to change at
  80. # least PidFile.
  81. #
  82. ServerRoot "/usr/local"
  83.  
  84. #
  85. # Mutex: Allows you to set the mutex mechanism and mutex file directory
  86. # for individual mutexes, or change the global defaults
  87. #
  88. # Uncomment and change the directory if mutexes are file-based and the default
  89. # mutex file directory is not on a local disk or is not appropriate for some
  90. # other reason.
  91. #
  92. # Mutex default:/var/run
  93.  
  94. #
  95. # Listen: Allows you to bind Apache to specific IP addresses and/or
  96. # ports, instead of the default. See also the <VirtualHost>
  97. # directive.
  98. #
  99. # Change this to Listen on specific IP addresses as shown below to
  100. # prevent Apache from glomming onto all bound IP addresses.
  101. #
  102. #Listen 12.34.56.78:80
  103. Listen 80
  104.  
  105. #
  106. # Dynamic Shared Object (DSO) Support
  107. #
  108. # To be able to use the functionality of a module which was built as a DSO you
  109. # have to place corresponding `LoadModule' lines at this location so the
  110. # directives contained in it are actually available _before_ they are used.
  111. # Statically compiled modules (those listed by `httpd -l') do not need
  112. # to be loaded here.
  113. #
  114. # Example:
  115. # LoadModule foo_module modules/mod_foo.so
  116. #
  117. #LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
  118. LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
  119. #LoadModule mpm_worker_module libexec/apache24/mod_mpm_worker.so
  120. LoadModule authn_file_module libexec/apache24/mod_authn_file.so
  121. #LoadModule authn_dbm_module libexec/apache24/mod_authn_dbm.so
  122. #LoadModule authn_anon_module libexec/apache24/mod_authn_anon.so
  123. #LoadModule authn_dbd_module libexec/apache24/mod_authn_dbd.so
  124. #LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so
  125. LoadModule authn_core_module libexec/apache24/mod_authn_core.so
  126. LoadModule authz_host_module libexec/apache24/mod_authz_host.so
  127. LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so
  128. LoadModule authz_user_module libexec/apache24/mod_authz_user.so
  129. #LoadModule authz_dbm_module libexec/apache24/mod_authz_dbm.so
  130. #LoadModule authz_owner_module libexec/apache24/mod_authz_owner.so
  131. #LoadModule authz_dbd_module libexec/apache24/mod_authz_dbd.so
  132. LoadModule authz_core_module libexec/apache24/mod_authz_core.so
  133. #LoadModule authnz_fcgi_module libexec/apache24/mod_authnz_fcgi.so
  134. LoadModule access_compat_module libexec/apache24/mod_access_compat.so
  135. LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
  136. #LoadModule auth_form_module libexec/apache24/mod_auth_form.so
  137. #LoadModule auth_digest_module libexec/apache24/mod_auth_digest.so
  138. #LoadModule allowmethods_module libexec/apache24/mod_allowmethods.so
  139. #LoadModule file_cache_module libexec/apache24/mod_file_cache.so
  140. #LoadModule cache_module libexec/apache24/mod_cache.so
  141. #LoadModule cache_disk_module libexec/apache24/mod_cache_disk.so
  142. #LoadModule cache_socache_module libexec/apache24/mod_cache_socache.so
  143. #LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so
  144. #LoadModule socache_dbm_module libexec/apache24/mod_socache_dbm.so
  145. #LoadModule socache_memcache_module libexec/apache24/mod_socache_memcache.so
  146. #LoadModule watchdog_module libexec/apache24/mod_watchdog.so
  147. #LoadModule macro_module libexec/apache24/mod_macro.so
  148. #LoadModule dbd_module libexec/apache24/mod_dbd.so
  149. #LoadModule dumpio_module libexec/apache24/mod_dumpio.so
  150. #LoadModule buffer_module libexec/apache24/mod_buffer.so
  151. #LoadModule data_module libexec/apache24/mod_data.so
  152. #LoadModule ratelimit_module libexec/apache24/mod_ratelimit.so
  153. LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so
  154. #LoadModule ext_filter_module libexec/apache24/mod_ext_filter.so
  155. #LoadModule request_module libexec/apache24/mod_request.so
  156. #LoadModule include_module libexec/apache24/mod_include.so
  157. LoadModule filter_module libexec/apache24/mod_filter.so
  158. #LoadModule reflector_module libexec/apache24/mod_reflector.so
  159. #LoadModule substitute_module libexec/apache24/mod_substitute.so
  160. #LoadModule sed_module libexec/apache24/mod_sed.so
  161. #LoadModule charset_lite_module libexec/apache24/mod_charset_lite.so
  162. #LoadModule deflate_module libexec/apache24/mod_deflate.so
  163. #LoadModule xml2enc_module libexec/apache24/mod_xml2enc.so
  164. #LoadModule proxy_html_module libexec/apache24/mod_proxy_html.so
  165. LoadModule mime_module libexec/apache24/mod_mime.so
  166. LoadModule log_config_module libexec/apache24/mod_log_config.so
  167. #LoadModule log_debug_module libexec/apache24/mod_log_debug.so
  168. #LoadModule log_forensic_module libexec/apache24/mod_log_forensic.so
  169. #LoadModule logio_module libexec/apache24/mod_logio.so
  170. LoadModule env_module libexec/apache24/mod_env.so
  171. #LoadModule mime_magic_module libexec/apache24/mod_mime_magic.so
  172. #LoadModule cern_meta_module libexec/apache24/mod_cern_meta.so
  173. #LoadModule expires_module libexec/apache24/mod_expires.so
  174. LoadModule headers_module libexec/apache24/mod_headers.so
  175. #LoadModule usertrack_module libexec/apache24/mod_usertrack.so
  176. #LoadModule unique_id_module libexec/apache24/mod_unique_id.so
  177. LoadModule setenvif_module libexec/apache24/mod_setenvif.so
  178. LoadModule version_module libexec/apache24/mod_version.so
  179. #LoadModule remoteip_module libexec/apache24/mod_remoteip.so
  180. #LoadModule proxy_module libexec/apache24/mod_proxy.so
  181. #LoadModule proxy_connect_module libexec/apache24/mod_proxy_connect.so
  182. #LoadModule proxy_ftp_module libexec/apache24/mod_proxy_ftp.so
  183. #LoadModule proxy_http_module libexec/apache24/mod_proxy_http.so
  184. #LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
  185. #LoadModule proxy_scgi_module libexec/apache24/mod_proxy_scgi.so
  186. #LoadModule proxy_uwsgi_module libexec/apache24/mod_proxy_uwsgi.so
  187. #LoadModule proxy_fdpass_module libexec/apache24/mod_proxy_fdpass.so
  188. #LoadModule proxy_wstunnel_module libexec/apache24/mod_proxy_wstunnel.so
  189. #LoadModule proxy_ajp_module libexec/apache24/mod_proxy_ajp.so
  190. #LoadModule proxy_balancer_module libexec/apache24/mod_proxy_balancer.so
  191. #LoadModule proxy_express_module libexec/apache24/mod_proxy_express.so
  192. #LoadModule proxy_hcheck_module libexec/apache24/mod_proxy_hcheck.so
  193. #LoadModule session_module libexec/apache24/mod_session.so
  194. #LoadModule session_cookie_module libexec/apache24/mod_session_cookie.so
  195. #LoadModule session_crypto_module libexec/apache24/mod_session_crypto.so
  196. #LoadModule session_dbd_module libexec/apache24/mod_session_dbd.so
  197. #LoadModule slotmem_shm_module libexec/apache24/mod_slotmem_shm.so
  198. #LoadModule slotmem_plain_module libexec/apache24/mod_slotmem_plain.so
  199. #LoadModule ssl_module libexec/apache24/mod_ssl.so
  200. #LoadModule dialup_module libexec/apache24/mod_dialup.so
  201. #LoadModule http2_module libexec/apache24/mod_http2.so
  202. #LoadModule proxy_http2_module libexec/apache24/mod_proxy_http2.so
  203. #LoadModule lbmethod_byrequests_module libexec/apache24/mod_lbmethod_byrequests.so
  204. #LoadModule lbmethod_bytraffic_module libexec/apache24/mod_lbmethod_bytraffic.so
  205. #LoadModule lbmethod_bybusyness_module libexec/apache24/mod_lbmethod_bybusyness.so
  206. #LoadModule lbmethod_heartbeat_module libexec/apache24/mod_lbmethod_heartbeat.so
  207. LoadModule unixd_module libexec/apache24/mod_unixd.so
  208. #LoadModule heartbeat_module libexec/apache24/mod_heartbeat.so
  209. #LoadModule heartmonitor_module libexec/apache24/mod_heartmonitor.so
  210. #LoadModule dav_module libexec/apache24/mod_dav.so
  211. LoadModule status_module libexec/apache24/mod_status.so
  212. LoadModule autoindex_module libexec/apache24/mod_autoindex.so
  213. #LoadModule asis_module libexec/apache24/mod_asis.so
  214. #LoadModule info_module libexec/apache24/mod_info.so
  215. <IfModule !mpm_prefork_module>
  216. #LoadModule cgid_module libexec/apache24/mod_cgid.so
  217. </IfModule>
  218. <IfModule mpm_prefork_module>
  219. #LoadModule cgi_module libexec/apache24/mod_cgi.so
  220. </IfModule>
  221. #LoadModule dav_fs_module libexec/apache24/mod_dav_fs.so
  222. #LoadModule dav_lock_module libexec/apache24/mod_dav_lock.so
  223. #LoadModule vhost_alias_module libexec/apache24/mod_vhost_alias.so
  224. #LoadModule negotiation_module libexec/apache24/mod_negotiation.so
  225. LoadModule dir_module libexec/apache24/mod_dir.so
  226. #LoadModule imagemap_module libexec/apache24/mod_imagemap.so
  227. #LoadModule actions_module libexec/apache24/mod_actions.so
  228. #LoadModule speling_module libexec/apache24/mod_speling.so
  229. #LoadModule userdir_module libexec/apache24/mod_userdir.so
  230. LoadModule alias_module libexec/apache24/mod_alias.so
  231. #LoadModule rewrite_module libexec/apache24/mod_rewrite.so
  232. LoadModule php5_module libexec/apache24/libphp5.so
  233.  
  234. # Third party modules
  235. IncludeOptional etc/apache24/modules.d/[0-9][0-9][0-9]_*.conf
  236.  
  237. <IfModule unixd_module>
  238. #
  239. # If you wish httpd to run as a different user or group, you must run
  240. # httpd as root initially and it will switch.
  241. #
  242. # User/Group: The name (or #number) of the user/group to run httpd as.
  243. # It is usually good practice to create a dedicated user and group for
  244. # running httpd, as with most system services.
  245. #
  246. User www
  247. Group www
  248.  
  249. </IfModule>
  250.  
  251. # 'Main' server configuration
  252. #
  253. # The directives in this section set up the values used by the 'main'
  254. # server, which responds to any requests that aren't handled by a
  255. # <VirtualHost> definition. These values also provide defaults for
  256. # any <VirtualHost> containers you may define later in the file.
  257. #
  258. # All of these directives may appear inside <VirtualHost> containers,
  259. # in which case these default settings will be overridden for the
  260. # virtual host being defined.
  261. #
  262.  
  263. #
  264. # ServerAdmin: Your address, where problems with the server should be
  265. # e-mailed. This address appears on some server-generated pages, such
  266. # as error documents. e.g. [email protected]
  267. #
  268. ServerAdmin [email protected]
  269.  
  270. #
  271. # ServerName gives the name and port that the server uses to identify itself.
  272. # This can often be determined automatically, but we recommend you specify
  273. # it explicitly to prevent problems during startup.
  274. #
  275. # If your host doesn't have a registered DNS name, enter its IP address here.
  276. #
  277. ServerName 10.10.10.1:80
  278. #
  279. # Deny access to the entirety of your server's filesystem. You must
  280. # explicitly permit access to web content directories in other
  281. # <Directory> blocks below.
  282. #
  283. <Directory />
  284. AllowOverride none
  285. Require all denied
  286. </Directory>
  287.  
  288. #
  289. # Note that from this point forward you must specifically allow
  290. # particular features to be enabled - so if something's not working as
  291. # you might expect, make sure that you have specifically enabled it
  292. # below.
  293. #
  294.  
  295. #
  296. # DocumentRoot: The directory out of which you will serve your
  297. # documents. By default, all requests are taken from this directory, but
  298. # symbolic links and aliases may be used to point to other locations.
  299. #
  300. DocumentRoot "/usr/local/www/apache24/data"
  301.  
  302. <Directory "/usr/local/www/apache24/data">
  303. Options Indexes FollowSymLinks
  304. AllowOverride None
  305. Require all granted
  306. </Directory>
  307.  
  308. <Directory "/usr/local/www/zabbix34">
  309. #
  310. # Possible values for the Options directive are "None", "All",
  311. # or any combination of:
  312. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
  313. #MultiViews
  314. #
  315. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  316. # doesn't give it to you.
  317. #
  318. # The Options directive is both complicated and important. Please see
  319. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  320. # for more information.
  321. #
  322. Options Indexes FollowSymLinks
  323.  
  324. #
  325. # AllowOverride controls what directives may be placed in .htaccess files.
  326. # It can be "All", "None", or any combination of the keywords:
  327. # AllowOverride FileInfo AuthConfig Limit
  328. #
  329. AllowOverride None
  330.  
  331. #
  332. # Controls who can get stuff from this server.
  333. #
  334. Require all granted
  335. </Directory>
  336.  
  337. #
  338. # DirectoryIndex: sets the file that Apache will serve if a directory
  339. # is requested.
  340. #
  341. <IfModule dir_module>
  342. DirectoryIndex index.html index.php
  343. </IfModule>
  344.  
  345. #
  346. # The following lines prevent .htaccess and .htpasswd files from being
  347. # viewed by Web clients.
  348. #
  349. <Files ".ht*">
  350. Require all denied
  351. </Files>
  352.  
  353. #
  354. # ErrorLog: The location of the error log file.
  355. # If you do not specify an ErrorLog directive within a <VirtualHost>
  356. # container, error messages relating to that virtual host will be
  357. # logged here. If you *do* define an error logfile for a <VirtualHost>
  358. # container, that host's errors will be logged there and not here.
  359. #
  360. ErrorLog "/var/log/httpd-error.log"
  361.  
  362. #
  363. # LogLevel: Control the number of messages logged to the error_log.
  364. # Possible values include: debug, info, notice, warn, error, crit,
  365. # alert, emerg.
  366. #
  367. LogLevel warn
  368.  
  369. <IfModule log_config_module>
  370. #
  371. # The following directives define some format nicknames for use with
  372. # a CustomLog directive (see below).
  373. #
  374. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  375. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  376.  
  377. <IfModule logio_module>
  378. # You need to enable mod_logio.c to use %I and %O
  379. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  380. </IfModule>
  381.  
  382. #
  383. # The location and format of the access logfile (Common Logfile Format).
  384. # If you do not define any access logfiles within a <VirtualHost>
  385. # container, they will be logged here. Contrariwise, if you *do*
  386. # define per-<VirtualHost> access logfiles, transactions will be
  387. # logged therein and *not* in this file.
  388. #
  389. CustomLog "/var/log/httpd-access.log" common
  390.  
  391. #
  392. # If you prefer a logfile with access, agent, and referer information
  393. # (Combined Logfile Format) you can use the following directive.
  394. #
  395. #CustomLog "/var/log/httpd-access.log" combined
  396. </IfModule>
  397.  
  398. <IfModule alias_module>
  399. #
  400. # Redirect: Allows you to tell clients about documents that used to
  401. # exist in your server's namespace, but do not anymore. The client
  402. # will make a new request for the document at its new location.
  403. # Example:
  404. # Redirect permanent /foo http://www.example.com/bar
  405.  
  406. #
  407. # Alias: Maps web paths into filesystem paths and is used to
  408. # access content that does not live under the DocumentRoot.
  409. # Example:
  410. # Alias /webpath /full/filesystem/path
  411. #
  412. # If you include a trailing / on /webpath then the server will
  413. # require it to be present in the URL. You will also likely
  414. # need to provide a <Directory> section to allow access to
  415. # the filesystem path.
  416.  
  417. #
  418. # ScriptAlias: This controls which directories contain server scripts.
  419. # ScriptAliases are essentially the same as Aliases, except that
  420. # documents in the target directory are treated as applications and
  421. # run by the server when requested rather than as documents sent to the
  422. # client. The same rules about trailing "/" apply to ScriptAlias
  423. # directives as to Alias.
  424. #
  425. ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
  426.  
  427. </IfModule>
  428.  
  429. <IfModule cgid_module>
  430. #
  431. # ScriptSock: On threaded servers, designate the path to the UNIX
  432. # socket used to communicate with the CGI daemon of mod_cgid.
  433. #
  434. #Scriptsock cgisock
  435. </IfModule>
  436.  
  437. #
  438. # "/usr/local/www/apache24/cgi-bin" should be changed to whatever your ScriptAliased
  439. # CGI directory exists, if you have that configured.
  440. #
  441. <Directory "/usr/local/www/apache24/cgi-bin">
  442. AllowOverride None
  443. Options None
  444. Require all granted
  445. </Directory>
  446.  
  447. <IfModule headers_module>
  448. #
  449. # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
  450. # backend servers which have lingering "httpoxy" defects.
  451. # 'Proxy' request header is undefined by the IETF, not listed by IANA
  452. #
  453. RequestHeader unset Proxy early
  454. </IfModule>
  455.  
  456. <IfModule mime_module>
  457. #
  458. # TypesConfig points to the file containing the list of mappings from
  459. # filename extension to MIME-type.
  460. #
  461. TypesConfig etc/apache24/mime.types
  462.  
  463. #
  464. # AddType allows you to add to or override the MIME configuration
  465. # file specified in TypesConfig for specific file types.
  466. #
  467. #AddType application/x-gzip .tgz
  468. #
  469. # AddEncoding allows you to have certain browsers uncompress
  470. # information on the fly. Note: Not all browsers support this.
  471. #
  472. #AddEncoding x-compress .Z
  473. #AddEncoding x-gzip .gz .tgz
  474. #
  475. # If the AddEncoding directives above are commented-out, then you
  476. # probably should define those extensions to indicate media types:
  477. #
  478. AddType application/x-compress .Z
  479. AddType application/x-gzip .gz .tgz
  480.  
  481. #
  482. # AddHandler allows you to map certain file extensions to "handlers":
  483. # actions unrelated to filetype. These can be either built into the server
  484. # or added with the Action directive (see below)
  485. #
  486. # To use CGI scripts outside of ScriptAliased directories:
  487. # (You will also need to add "ExecCGI" to the "Options" directive.)
  488. #
  489. #AddHandler cgi-script .cgi
  490.  
  491. # For type maps (negotiated resources):
  492. #AddHandler type-map var
  493.  
  494. #
  495. # Filters allow you to process content before it is sent to the client.
  496. #
  497. # To parse .shtml files for server-side includes (SSI):
  498. # (You will also need to add "Includes" to the "Options" directive.)
  499. #
  500. #AddType text/html .shtml
  501. #AddOutputFilter INCLUDES .shtml
  502. </IfModule>
  503.  
  504. #
  505. # The mod_mime_magic module allows the server to use various hints from the
  506. # contents of the file itself to determine its type. The MIMEMagicFile
  507. # directive tells the module where the hint definitions are located.
  508. #
  509. #MIMEMagicFile etc/apache24/magic
  510.  
  511. #
  512. # Customizable error responses come in three flavors:
  513. # 1) plain text 2) local redirects 3) external redirects
  514. #
  515. # Some examples:
  516. #ErrorDocument 500 "The server made a boo boo."
  517. #ErrorDocument 404 /missing.html
  518. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  519. #ErrorDocument 402 http://www.example.com/subscription_info.html
  520. #
  521.  
  522. #
  523. # MaxRanges: Maximum number of Ranges in a request before
  524. # returning the entire resource, or one of the special
  525. # values 'default', 'none' or 'unlimited'.
  526. # Default setting is to accept 200 Ranges.
  527. #MaxRanges unlimited
  528.  
  529. #
  530. # EnableMMAP and EnableSendfile: On systems that support it,
  531. # memory-mapping or the sendfile syscall may be used to deliver
  532. # files. This usually improves server performance, but must
  533. # be turned off when serving from networked-mounted
  534. # filesystems or if support for these functions is otherwise
  535. # broken on your system.
  536. # Defaults: EnableMMAP On, EnableSendfile Off
  537. #
  538. #EnableMMAP off
  539. #EnableSendfile on
  540.  
  541. # Supplemental configuration
  542. #
  543. # The configuration files in the etc/apache24/extra/ directory can be
  544. # included to add extra features or to modify the default configuration of
  545. # the server, or you may simply copy their contents here and change as
  546. # necessary.
  547.  
  548. # Server-pool management (MPM specific)
  549. #Include etc/apache24/extra/httpd-mpm.conf
  550.  
  551. # Multi-language error messages
  552. #Include etc/apache24/extra/httpd-multilang-errordoc.conf
  553.  
  554. # Fancy directory listings
  555. #Include etc/apache24/extra/httpd-autoindex.conf
  556.  
  557. # Language settings
  558. #Include etc/apache24/extra/httpd-languages.conf
  559.  
  560. # User home directories
  561. #Include etc/apache24/extra/httpd-userdir.conf
  562.  
  563. # Real-time info on requests and configuration
  564. #Include etc/apache24/extra/httpd-info.conf
  565.  
  566. # Virtual hosts
  567. Include etc/apache24/extra/httpd-vhosts.conf
  568.  
  569. # Local access to the Apache HTTP Server Manual
  570. #Include etc/apache24/extra/httpd-manual.conf
  571.  
  572. # Distributed authoring and versioning (WebDAV)
  573. #Include etc/apache24/extra/httpd-dav.conf
  574.  
  575. # Various default settings
  576. Include etc/apache24/extra/httpd-default.conf
  577.  
  578. # Configure mod_proxy_html to understand HTML4/XHTML1
  579. <IfModule proxy_html_module>
  580. Include etc/apache24/extra/proxy-html.conf
  581. </IfModule>
  582.  
  583. # Secure (SSL/TLS) connections
  584. #Include etc/apache24/extra/httpd-ssl.conf
  585. #
  586. # Note: The following must must be present to support
  587. # starting without SSL on platforms with no /dev/random equivalent
  588. # but a statically compiled-in mod_ssl.
  589. #
  590. <IfModule ssl_module>
  591. SSLRandomSeed startup builtin
  592. SSLRandomSeed connect builtin
  593. </IfModule>
  594.  
  595. Include etc/apache24/Includes/*.conf
  596.  
  597. <FilesMatch "\.php$">
  598. SetHandler application/x-httpd-php
  599. </FilesMatch>
  600. <FilesMatch "\.phps$">
  601. SetHandler application/x-httpd-php-source
  602. </FilesMatch>
  603.  
  604. <Directory "/">
  605. #Options FollowSymLinks
  606. Options Indexes FollowSymLinks Includes ExecCGI
  607. AllowOverride None
  608. Allow from all
  609. </Directory>
  610.  
  611. <Directory "/home/">
  612. #Options FollowSymLinks
  613. Options Indexes FollowSymLinks Includes ExecCGI
  614. AllowOverride None
  615. Allow from all
  616. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment