Advertisement
Guest User

Untitled

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