Guest User

Untitled

a guest
Oct 15th, 2015
282
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.2> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.2/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/foo_log"
  17. # with ServerRoot set to "/Applications/MAMP/Library" will be interpreted by the
  18. # server as "/Applications/MAMP/Library/logs/foo_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 point the LockFile directive
  26. # at a local disk. If you wish to share the same ServerRoot for multiple
  27. # httpd daemons, you will need to change at least LockFile and PidFile.
  28. #
  29. ServerRoot "/Applications/MAMP/Library"
  30.  
  31. #
  32. # PidFile: The file in which the server should record its process
  33. # identification number when it starts.
  34. #
  35. <IfModule !mpm_netware.c>
  36. PidFile logs/httpd.pid
  37. </IfModule>
  38.  
  39. #
  40. # Listen: Allows you to bind Apache to specific IP addresses and/or
  41. # ports, instead of the default. See also the <VirtualHost>
  42. # directive.
  43. #
  44. # Change this to Listen on specific IP addresses as shown below to
  45. # prevent Apache from glomming onto all bound IP addresses.
  46. #
  47. #Listen 12.34.56.78:80
  48. Listen 8888
  49.  
  50. #
  51. # Dynamic Shared Object (DSO) Support
  52. #
  53. # To be able to use the functionality of a module which was built as a DSO you
  54. # have to place corresponding `LoadModule' lines at this location so the
  55. # directives contained in it are actually available _before_ they are used.
  56. # Statically compiled modules (those listed by `httpd -l') do not need
  57. # to be loaded here.
  58. #
  59. # Example:
  60. # LoadModule foo_module modules/mod_foo.so
  61. #
  62. LoadModule authn_file_module modules/mod_authn_file.so
  63. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  64. LoadModule authn_anon_module modules/mod_authn_anon.so
  65. LoadModule authn_dbd_module modules/mod_authn_dbd.so
  66. LoadModule authn_default_module modules/mod_authn_default.so
  67. LoadModule authz_host_module modules/mod_authz_host.so
  68. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  69. LoadModule authz_user_module modules/mod_authz_user.so
  70. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  71. LoadModule authz_owner_module modules/mod_authz_owner.so
  72. LoadModule authz_default_module modules/mod_authz_default.so
  73. LoadModule auth_basic_module modules/mod_auth_basic.so
  74. LoadModule auth_digest_module modules/mod_auth_digest.so
  75. LoadModule file_cache_module modules/mod_file_cache.so
  76. LoadModule cache_module modules/mod_cache.so
  77. LoadModule disk_cache_module modules/mod_disk_cache.so
  78. LoadModule mem_cache_module modules/mod_mem_cache.so
  79. LoadModule dbd_module modules/mod_dbd.so
  80. LoadModule bucketeer_module modules/mod_bucketeer.so
  81. LoadModule dumpio_module modules/mod_dumpio.so
  82. LoadModule echo_module modules/mod_echo.so
  83. LoadModule case_filter_module modules/mod_case_filter.so
  84. LoadModule case_filter_in_module modules/mod_case_filter_in.so
  85. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  86. LoadModule ext_filter_module modules/mod_ext_filter.so
  87. LoadModule include_module modules/mod_include.so
  88. LoadModule filter_module modules/mod_filter.so
  89. LoadModule substitute_module modules/mod_substitute.so
  90. LoadModule charset_lite_module modules/mod_charset_lite.so
  91. LoadModule deflate_module modules/mod_deflate.so
  92. LoadModule log_config_module modules/mod_log_config.so
  93. LoadModule logio_module modules/mod_logio.so
  94. LoadModule env_module modules/mod_env.so
  95. LoadModule mime_magic_module modules/mod_mime_magic.so
  96. LoadModule cern_meta_module modules/mod_cern_meta.so
  97. LoadModule expires_module modules/mod_expires.so
  98. LoadModule headers_module modules/mod_headers.so
  99. LoadModule ident_module modules/mod_ident.so
  100. LoadModule usertrack_module modules/mod_usertrack.so
  101. #LoadModule unique_id_module modules/mod_unique_id.so
  102. LoadModule setenvif_module modules/mod_setenvif.so
  103. LoadModule version_module modules/mod_version.so
  104. LoadModule proxy_module modules/mod_proxy.so
  105. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  106. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  107. LoadModule proxy_http_module modules/mod_proxy_http.so
  108. LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
  109. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  110. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  111. LoadModule ssl_module modules/mod_ssl.so
  112. LoadModule mime_module modules/mod_mime.so
  113. LoadModule dav_module modules/mod_dav.so
  114. LoadModule status_module modules/mod_status.so
  115. LoadModule autoindex_module modules/mod_autoindex.so
  116. LoadModule asis_module modules/mod_asis.so
  117. LoadModule info_module modules/mod_info.so
  118. LoadModule cgi_module modules/mod_cgi.so
  119. LoadModule fastcgi_module modules/mod_fastcgi.so
  120. LoadModule cgid_module modules/mod_cgid.so
  121. LoadModule dav_fs_module modules/mod_dav_fs.so
  122. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  123. LoadModule negotiation_module modules/mod_negotiation.so
  124. LoadModule dir_module modules/mod_dir.so
  125. LoadModule imagemap_module modules/mod_imagemap.so
  126. LoadModule actions_module modules/mod_actions.so
  127. LoadModule speling_module modules/mod_speling.so
  128. LoadModule userdir_module modules/mod_userdir.so
  129. LoadModule alias_module modules/mod_alias.so
  130. LoadModule rewrite_module modules/mod_rewrite.so
  131. LoadModule perl_module modules/mod_perl.so
  132. LoadModule wsgi_module modules/mod_wsgi.so
  133. LoadModule xsendfile_module modules/mod_xsendfile.so
  134.  
  135. LoadModule php5_module /Applications/MAMP/bin/php/php5.6.10/modules/libphp5.so
  136.  
  137. #
  138. AddType application/x-httpd-php .php .phtml
  139.  
  140. <IfModule !mpm_netware_module>
  141. <IfModule !mpm_winnt_module>
  142. #
  143. # If you wish httpd to run as a different user or group, you must run
  144. # httpd as root initially and it will switch.
  145. #
  146. # User/Group: The name (or #number) of the user/group to run httpd as.
  147. # It is usually good practice to create a dedicated user and group for
  148. # running httpd, as with most system services.
  149. #
  150. User Roy
  151. Group #-1
  152.  
  153. </IfModule>
  154. </IfModule>
  155.  
  156. <IfModule xsendfile_module>
  157. XSendFile on
  158. </IfModule>
  159.  
  160. # 'Main' server configuration
  161. #
  162. # The directives in this section set up the values used by the 'main'
  163. # server, which responds to any requests that aren't handled by a
  164. # <VirtualHost> definition. These values also provide defaults for
  165. # any <VirtualHost> containers you may define later in the file.
  166. #
  167. # All of these directives may appear inside <VirtualHost> containers,
  168. # in which case these default settings will be overridden for the
  169. # virtual host being defined.
  170. #
  171.  
  172. #
  173. # ServerAdmin: Your address, where problems with the server should be
  174. # e-mailed. This address appears on some server-generated pages, such
  175. # as error documents. e.g. admin@your-domain.com
  176. #
  177. ServerAdmin you@example.com
  178.  
  179. #
  180. # ServerName gives the name and port that the server uses to identify itself.
  181. # This can often be determined automatically, but we recommend you specify
  182. # it explicitly to prevent problems during startup.
  183. #
  184. # If your host doesn't have a registered DNS name, enter its IP address here.
  185. #
  186. ServerName localhost:8888
  187.  
  188. #
  189. # DocumentRoot: The directory out of which you will serve your
  190. # documents. By default, all requests are taken from this directory, but
  191. # symbolic links and aliases may be used to point to other locations.
  192. #
  193. # MAMP DOCUMENT_ROOT !! Don't remove this line !!
  194. DocumentRoot "/Users/Roy/Websites"
  195.  
  196. #
  197. # Each directory to which Apache has access can be configured with respect
  198. # to which services and features are allowed and/or disabled in that
  199. # directory (and its subdirectories).
  200. #
  201. # First, we configure the "default" to be a very restrictive set of
  202. # features.
  203. #
  204. <Directory "/Applications/MAMP/bin/mamp">
  205. Options Indexes MultiViews
  206. AllowOverride All
  207. Order allow,deny
  208. Allow from all
  209. </Directory>
  210.  
  211. #
  212. # Note that from this point forward you must specifically allow
  213. # particular features to be enabled - so if something's not working as
  214. # you might expect, make sure that you have specifically enabled it
  215. # below.
  216. #
  217.  
  218. #
  219. # This should be changed to whatever you set DocumentRoot to.
  220. #
  221. <Directory "/Users/Roy/Websites">
  222. #
  223. # Possible values for the Options directive are "None", "All",
  224. # or any combination of:
  225. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  226. #
  227. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  228. # doesn't give it to you.
  229. #
  230. # The Options directive is both complicated and important. Please see
  231. # http://httpd.apache.org/docs/2.2/mod/core.html#options
  232. # for more information.
  233. #
  234. Options All
  235.  
  236. #
  237. # AllowOverride controls what directives may be placed in .htaccess files.
  238. # It can be "All", "None", or any combination of the keywords:
  239. # Options FileInfo AuthConfig Limit
  240. #
  241. AllowOverride All
  242.  
  243. #
  244. # Controls who can get stuff from this server.
  245. #
  246. Order allow,deny
  247. Allow from all
  248.  
  249. XSendFilePath "/Applications/MAMP/htdocs"
  250. </Directory>
  251.  
  252. #
  253. # DirectoryIndex: sets the file that Apache will serve if a directory
  254. # is requested.
  255. #
  256. <IfModule dir_module>
  257. DirectoryIndex index.html index.php
  258.  
  259. <IfModule perl_module>
  260. DirectoryIndex index.pl
  261. </IfModule>
  262.  
  263. <IfModule wsgi_module>
  264. DirectoryIndex index.wsgi index.py
  265. </IfModule>
  266.  
  267. </IfModule>
  268.  
  269. #
  270. # AccessFileName: The name of the file to look for in each directory
  271. # for additional configuration directives. See also the AllowOverride
  272. # directive.
  273. #
  274. AccessFileName .htaccess
  275.  
  276. #
  277. # The following lines prevent .htaccess and .htpasswd files from being
  278. # viewed by Web clients.
  279. #
  280. <FilesMatch "^\.ht">
  281. Order allow,deny
  282. Deny from all
  283. Satisfy All
  284. </FilesMatch>
  285.  
  286. <Files ~ "^\.DS_Store">
  287. Order allow,deny
  288. Deny from all
  289. </Files>
  290.  
  291. #
  292. # ErrorLog: The location of the error log file.
  293. # If you do not specify an ErrorLog directive within a <VirtualHost>
  294. # container, error messages relating to that virtual host will be
  295. # logged here. If you *do* define an error logfile for a <VirtualHost>
  296. # container, that host's errors will be logged there and not here.
  297. #
  298. ErrorLog "/Applications/MAMP/logs/apache_error.log"
  299.  
  300. #
  301. # LogLevel: Control the number of messages logged to the error_log.
  302. # Possible values include: debug, info, notice, warn, error, crit,
  303. # alert, emerg.
  304. #
  305. LogLevel error
  306.  
  307. <IfModule log_config_module>
  308. #
  309. # The following directives define some format nicknames for use with
  310. # a CustomLog directive (see below).
  311. #
  312. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  313. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  314.  
  315. <IfModule logio_module>
  316. # You need to enable mod_logio.c to use %I and %O
  317. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  318. </IfModule>
  319.  
  320. #
  321. # The location and format of the access logfile (Common Logfile Format).
  322. # If you do not define any access logfiles within a <VirtualHost>
  323. # container, they will be logged here. Contrariwise, if you *do*
  324. # define per-<VirtualHost> access logfiles, transactions will be
  325. # logged therein and *not* in this file.
  326. #
  327. #CustomLog "/Applications/MAMP/logs/apache_access.log" common
  328.  
  329. #
  330. # If you prefer a logfile with access, agent, and referer information
  331. # (Combined Logfile Format) you can use the following directive.
  332. #
  333. #CustomLog "/Applications/MAMP/logs/apache_access.log" combined
  334. </IfModule>
  335.  
  336. <IfModule alias_module>
  337. #
  338. # Redirect: Allows you to tell clients about documents that used to
  339. # exist in your server's namespace, but do not anymore. The client
  340. # will make a new request for the document at its new location.
  341. # Example:
  342. # Redirect permanent /foo http://www.example.com/bar
  343.  
  344. #
  345. # Alias: Maps web paths into filesystem paths and is used to
  346. # access content that does not live under the DocumentRoot.
  347. # Example:
  348. # Alias /webpath /full/filesystem/path
  349. #
  350. # If you include a trailing / on /webpath then the server will
  351. # require it to be present in the URL. You will also likely
  352. # need to provide a <Directory> section to allow access to
  353. # the filesystem path.
  354. #
  355. # We include the /icons/ alias for FancyIndexed directory listings. If you
  356. # do not use FancyIndexing, you may comment this out.
  357. #
  358.  
  359. Alias /favicon.ico "/Applications/MAMP/bin/favicon.ico"
  360.  
  361. Alias /icons/ "/Applications/MAMP/Library/icons/"
  362.  
  363. <Directory "/Applications/MAMP/Library/icons">
  364. Options Indexes MultiViews
  365. AllowOverride None
  366. Order allow,deny
  367. Allow from all
  368. </Directory>
  369.  
  370. Alias /phpMyAdmin "/Applications/MAMP/bin/phpMyAdmin"
  371. Alias /phpmyadmin "/Applications/MAMP/bin/phpMyAdmin"
  372.  
  373. <Directory "/Applications/MAMP/bin/phpMyAdmin">
  374. Options Indexes MultiViews
  375. AllowOverride None
  376. Order allow,deny
  377. Allow from all
  378. </Directory>
  379.  
  380. Alias /phpPgAdmin "/Applications/MAMP/bin/phpPgAdmin"
  381. Alias /phppgadmin "/Applications/MAMP/bin/phpPgAdmin"
  382.  
  383. <Directory "/Applications/MAMP/bin/phpPgAdmin">
  384. Options Indexes MultiViews
  385. AllowOverride None
  386. Order allow,deny
  387. Allow from all
  388. </Directory>
  389.  
  390. Alias /phpLiteAdmin "/Applications/MAMP/bin/phpLiteAdmin"
  391. Alias /phpliteadmin "/Applications/MAMP/bin/phpLiteAdmin"
  392.  
  393. <Directory "/Applications/MAMP/bin/phpLiteAdmin">
  394. Options Indexes MultiViews
  395. AllowOverride None
  396. Order allow,deny
  397. Allow from all
  398. </Directory>
  399.  
  400. Alias /SQLiteManager "/Applications/MAMP/bin/SQLiteManager"
  401. Alias /sqlitemanager "/Applications/MAMP/bin/SQLiteManager"
  402.  
  403. <Directory "/Applications/MAMP/bin/SQLiteManager">
  404. Options Indexes MultiViews
  405. AllowOverride None
  406. Order allow,deny
  407. Allow from all
  408. </Directory>
  409.  
  410. Alias /MAMP "/Applications/MAMP/bin/mamp"
  411.  
  412. <Directory "/Applications/MAMP/bin/mamp">
  413. Options Indexes MultiViews
  414. AllowOverride None
  415. Order allow,deny
  416. Allow from all
  417. </Directory>
  418.  
  419. #
  420. # ScriptAlias: This controls which directories contain server scripts.
  421. # ScriptAliases are essentially the same as Aliases, except that
  422. # documents in the target directory are treated as applications and
  423. # run by the server when requested rather than as documents sent to the
  424. # client. The same rules about trailing "/" apply to ScriptAlias
  425. # directives as to Alias.
  426. #
  427. ScriptAlias /cgi-bin/ "/Applications/MAMP/cgi-bin/"
  428.  
  429. Alias /perl/ "/Applications/MAMP/cgi-bin/"
  430.  
  431. <IfModule perl_module>
  432. PerlModule ModPerl::Registry
  433. <Location /perl>
  434. SetHandler perl-script
  435. PerlResponseHandler ModPerl::Registry
  436. PerlOptions +ParseHeaders
  437. Options +ExecCGI
  438. </Location>
  439. </IfModule>
  440. </IfModule>
  441.  
  442. <IfModule cgid_module>
  443. #
  444. # ScriptSock: On threaded servers, designate the path to the UNIX
  445. # socket used to communicate with the CGI daemon of mod_cgid.
  446. #
  447. #Scriptsock logs/cgisock
  448. </IfModule>
  449.  
  450. #
  451. # "/Applications/MAMP/cgi-bin" should be changed to whatever your ScriptAliased
  452. # CGI directory exists, if you have that configured.
  453. #
  454. <Directory "/Applications/MAMP/cgi-bin">
  455. AllowOverride None
  456. Options None
  457. Order allow,deny
  458. Allow from all
  459. </Directory>
  460.  
  461. #
  462. # DefaultType: the default MIME type the server will use for a document
  463. # if it cannot otherwise determine one, such as from filename extensions.
  464. # If your server contains mostly text or HTML documents, "text/plain" is
  465. # a good value. If most of your content is binary, such as applications
  466. # or images, you may want to use "application/octet-stream" instead to
  467. # keep browsers from trying to display binary files as though they are
  468. # text.
  469. #
  470. DefaultType text/plain
  471.  
  472. <IfModule mime_module>
  473. #
  474. # TypesConfig points to the file containing the list of mappings from
  475. # filename extension to MIME-type.
  476. #
  477. TypesConfig /Applications/MAMP/conf/apache/mime.types
  478.  
  479. #
  480. # AddType allows you to add to or override the MIME configuration
  481. # file specified in TypesConfig for specific file types.
  482. #
  483. #AddType application/x-gzip .tgz
  484. #
  485. # AddEncoding allows you to have certain browsers uncompress
  486. # information on the fly. Note: Not all browsers support this.
  487. #
  488. #AddEncoding x-compress .Z
  489. #AddEncoding x-gzip .gz .tgz
  490. #
  491. # If the AddEncoding directives above are commented-out, then you
  492. # probably should define those extensions to indicate media types:
  493. #
  494. AddType application/x-compress .Z
  495. AddType application/x-gzip .gz .tgz
  496.  
  497. #
  498. # AddHandler allows you to map certain file extensions to "handlers":
  499. # actions unrelated to filetype. These can be either built into the server
  500. # or added with the Action directive (see below)
  501. #
  502. # To use CGI scripts outside of ScriptAliased directories:
  503. # (You will also need to add "ExecCGI" to the "Options" directive.)
  504. #
  505. AddHandler cgi-script .cgi .pl
  506.  
  507. # For type maps (negotiated resources):
  508. #AddHandler type-map var
  509.  
  510. #
  511. # Filters allow you to process content before it is sent to the client.
  512. #
  513. # To parse .shtml files for server-side includes (SSI):
  514. # (You will also need to add "Includes" to the "Options" directive.)
  515. #
  516. #AddType text/html .shtml
  517. #AddOutputFilter INCLUDES .shtml
  518. </IfModule>
  519.  
  520. #
  521. # The mod_mime_magic module allows the server to use various hints from the
  522. # contents of the file itself to determine its type. The MIMEMagicFile
  523. # directive tells the module where the hint definitions are located.
  524. #
  525. <IfModule mime_magic_module>
  526. MIMEMagicFile /Applications/MAMP/conf/apache/magic
  527. </IfModule>
  528.  
  529. #
  530. # Customizable error responses come in three flavors:
  531. # 1) plain text 2) local redirects 3) external redirects
  532. #
  533. # Some examples:
  534. #ErrorDocument 500 "The server made a boo boo."
  535. #ErrorDocument 404 /missing.html
  536. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  537. #ErrorDocument 402 http://www.example.com/subscription_info.html
  538. #
  539.  
  540. #
  541. # EnableMMAP and EnableSendfile: On systems that support it,
  542. # memory-mapping or the sendfile syscall is used to deliver
  543. # files. This usually improves server performance, but must
  544. # be turned off when serving from networked-mounted
  545. # filesystems or if support for these functions is otherwise
  546. # broken on your system.
  547. #
  548. #EnableMMAP off
  549. #EnableSendfile off
  550.  
  551. # Supplemental configuration
  552. #
  553. # The configuration files in the /Applications/MAMP/conf/apache/extra/ directory can be
  554. # included to add extra features or to modify the default configuration of
  555. # the server, or you may simply copy their contents here and change as
  556. # necessary.
  557.  
  558. # Server-pool management (MPM specific)
  559. #Include /Applications/MAMP/conf/apache/extra/httpd-mpm.conf
  560.  
  561. # Multi-language error messages
  562. #Include /Applications/MAMP/conf/apache/extra/httpd-multilang-errordoc.conf
  563.  
  564. # Fancy directory listings
  565. #Include /Applications/MAMP/conf/apache/extra/httpd-autoindex.conf
  566.  
  567. # Language settings
  568. #Include /Applications/MAMP/conf/apache/extra/httpd-languages.conf
  569.  
  570. # User home directories
  571. #Include /Applications/MAMP/conf/apache/extra/httpd-userdir.conf
  572.  
  573. # Real-time info on requests and configuration
  574. #Include /Applications/MAMP/conf/apache/extra/httpd-info.conf
  575.  
  576. # Virtual hosts
  577. #Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
  578.  
  579. # Local access to the Apache HTTP Server Manual
  580. #Include /Applications/MAMP/conf/apache/extra/httpd-manual.conf
  581.  
  582. # Distributed authoring and versioning (WebDAV)
  583. #Include /Applications/MAMP/conf/apache/extra/httpd-dav.conf
  584.  
  585. # Various default settings
  586. #Include /Applications/MAMP/conf/apache/extra/httpd-default.conf
  587.  
  588. # Secure (SSL/TLS) connections
  589. #Include /Applications/MAMP/conf/apache/extra/httpd-ssl.conf
  590. #
  591. # Note: The following must must be present to support
  592. # starting without SSL on platforms with no /dev/random equivalent
  593. # but a statically compiled-in mod_ssl.
  594. #
  595. <IfModule ssl_module>
  596. SSLRandomSeed startup file:/dev/urandom 1024
  597. SSLRandomSeed connect file:/dev/urandom 1024
  598.  
  599. #
  600. # Uncomment the next line if Apache should not accept SSLv3 connections, to learn more google for "POODLE SSLv3".
  601. # SSLProtocol All -SSLv2 -SSLv3
  602. </IfModule>
RAW Paste Data