SHARE
TWEET

Untitled

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