Guest User

Untitled

a guest
Nov 20th, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.46 KB | None | 0 0
  1. #
  2. # Mac OS X / Mac OS X Server
  3. # The <IfDefine> blocks segregate server-specific directives
  4. # and also directives that only apply when Web Sharing or
  5. # server Web Service (as opposed to other services that need Apache) is on.
  6. # The launchd plist sets appropriate Define parameters.
  7. # Generally, desktop has no vhosts and server does; server has added modules,
  8. # custom virtual hosts are only activated when Web Service is on, and
  9. # default document root and personal web sites at ~username are only
  10. # activated when Web Sharing is on.
  11. #
  12. #
  13. # This is the main Apache HTTP server configuration file. It contains the
  14. # configuration directives that give the server its instructions.
  15. # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
  16. # In particular, see
  17. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
  18. # for a discussion of each configuration directive.
  19. #
  20. # Do NOT simply read the instructions in here without understanding
  21. # what they do. They're here only as hints or reminders. If you are unsure
  22. # consult the online docs. You have been warned.
  23. #
  24. # Configuration and logfile names: If the filenames you specify for many
  25. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  26. # server will use that explicit path. If the filenames do *not* begin
  27. # with "/", the value of ServerRoot is prepended -- so "log/foo_log"
  28. # with ServerRoot set to "/usr" will be interpreted by the
  29. # server as "/usr/log/foo_log".
  30.  
  31. #
  32. # ServerRoot: The top of the directory tree under which the server's
  33. # configuration, error, and log files are kept.
  34. #
  35. # Do not add a slash at the end of the directory path. If you point
  36. # ServerRoot at a non-local disk, be sure to point the LockFile directive
  37. # at a local disk. If you wish to share the same ServerRoot for multiple
  38. # httpd daemons, you will need to change at least LockFile and PidFile.
  39. #
  40. ServerRoot "/usr"
  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. #
  50. #Listen 12.34.56.78:80
  51. <IfDefine !MACOSXSERVER>
  52. Listen 80
  53. </IfDefine>
  54.  
  55. #
  56. # Dynamic Shared Object (DSO) Support
  57. #
  58. # To be able to use the functionality of a module which was built as a DSO you
  59. # have to place corresponding `LoadModule' lines at this location so the
  60. # directives contained in it are actually available _before_ they are used.
  61. # Statically compiled modules (those listed by `httpd -l') do not need
  62. # to be loaded here.
  63. #
  64. # Example:
  65. # LoadModule foo_module modules/mod_foo.so
  66. #
  67. LoadModule authn_file_module libexec/apache2/mod_authn_file.so
  68. LoadModule authz_host_module libexec/apache2/mod_authz_host.so
  69. LoadModule cache_module libexec/apache2/mod_cache.so
  70. LoadModule disk_cache_module libexec/apache2/mod_disk_cache.so
  71. LoadModule dumpio_module libexec/apache2/mod_dumpio.so
  72. LoadModule reqtimeout_module libexec/apache2/mod_reqtimeout.so
  73. LoadModule ext_filter_module libexec/apache2/mod_ext_filter.so
  74. LoadModule include_module libexec/apache2/mod_include.so
  75. LoadModule filter_module libexec/apache2/mod_filter.so
  76. LoadModule substitute_module libexec/apache2/mod_substitute.so
  77. LoadModule deflate_module libexec/apache2/mod_deflate.so
  78. LoadModule log_config_module libexec/apache2/mod_log_config.so
  79. LoadModule log_forensic_module libexec/apache2/mod_log_forensic.so
  80. LoadModule logio_module libexec/apache2/mod_logio.so
  81. LoadModule env_module libexec/apache2/mod_env.so
  82. LoadModule mime_magic_module libexec/apache2/mod_mime_magic.so
  83. LoadModule cern_meta_module libexec/apache2/mod_cern_meta.so
  84. LoadModule expires_module libexec/apache2/mod_expires.so
  85. LoadModule headers_module libexec/apache2/mod_headers.so
  86. LoadModule ident_module libexec/apache2/mod_ident.so
  87. LoadModule usertrack_module libexec/apache2/mod_usertrack.so
  88. #LoadModule unique_id_module libexec/apache2/mod_unique_id.so
  89. LoadModule setenvif_module libexec/apache2/mod_setenvif.so
  90. LoadModule version_module libexec/apache2/mod_version.so
  91. LoadModule proxy_module libexec/apache2/mod_proxy.so
  92. LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so
  93. LoadModule proxy_scgi_module libexec/apache2/mod_proxy_scgi.so
  94. LoadModule proxy_balancer_module libexec/apache2/mod_proxy_balancer.so
  95. #LoadModule ssl_module libexec/apache2/mod_ssl.so
  96. LoadModule mime_module libexec/apache2/mod_mime.so
  97. LoadModule dav_module libexec/apache2/mod_dav.so
  98. LoadModule autoindex_module libexec/apache2/mod_autoindex.so
  99. LoadModule asis_module libexec/apache2/mod_asis.so
  100. LoadModule info_module libexec/apache2/mod_info.so
  101. LoadModule cgi_module libexec/apache2/mod_cgi.so
  102. LoadModule dav_fs_module libexec/apache2/mod_dav_fs.so
  103. LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
  104. LoadModule negotiation_module libexec/apache2/mod_negotiation.so
  105. LoadModule dir_module libexec/apache2/mod_dir.so
  106. LoadModule imagemap_module libexec/apache2/mod_imagemap.so
  107. LoadModule actions_module libexec/apache2/mod_actions.so
  108. LoadModule speling_module libexec/apache2/mod_speling.so
  109. LoadModule alias_module libexec/apache2/mod_alias.so
  110. LoadModule rewrite_module libexec/apache2/mod_rewrite.so
  111. LoadModule php5_module libexec/apache2/libphp5.so
  112.  
  113. #Apple specific modules
  114. LoadModule apple_userdir_module libexec/apache2/mod_userdir_apple.so
  115. LoadModule bonjour_module libexec/apache2/mod_bonjour.so
  116.  
  117. <IfDefine !MACOSXSERVER>
  118. LoadModule authn_dbm_module libexec/apache2/mod_authn_dbm.so
  119. LoadModule authn_anon_module libexec/apache2/mod_authn_anon.so
  120. LoadModule authn_dbd_module libexec/apache2/mod_authn_dbd.so
  121. LoadModule authn_default_module libexec/apache2/mod_authn_default.so
  122. LoadModule auth_basic_module libexec/apache2/mod_auth_basic.so
  123. LoadModule auth_digest_module libexec/apache2/mod_auth_digest.so
  124. LoadModule authz_groupfile_module libexec/apache2/mod_authz_groupfile.so
  125. LoadModule authz_user_module libexec/apache2/mod_authz_user.so
  126. LoadModule authz_dbm_module libexec/apache2/mod_authz_dbm.so
  127. LoadModule authz_owner_module libexec/apache2/mod_authz_owner.so
  128. LoadModule authz_default_module libexec/apache2/mod_authz_default.so
  129. LoadModule mem_cache_module libexec/apache2/mod_mem_cache.so
  130. LoadModule dbd_module libexec/apache2/mod_dbd.so
  131. LoadModule proxy_connect_module libexec/apache2/mod_proxy_connect.so
  132. LoadModule proxy_ftp_module libexec/apache2/mod_proxy_ftp.so
  133. LoadModule proxy_ajp_module libexec/apache2/mod_proxy_ajp.so
  134. LoadModule status_module libexec/apache2/mod_status.so
  135. </IfDefine>
  136.  
  137. <IfDefine MACOSXSERVER>
  138. LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so
  139. #LoadModule auth_digest_apple_module libexec/apache2/mod_auth_digest_apple.so
  140. #LoadModule encoding_module libexec/apache2/mod_encoding.so
  141. #LoadModule jk_module libexec/apache2/mod_jk.so
  142. LoadModule apple_auth_module libexec/apache2/mod_auth_apple.so
  143. LoadModule spnego_auth_module libexec/apache2/mod_spnego_apple.so
  144. LoadModule apple_digest_module libexec/apache2/mod_digest_apple.so
  145. #LoadModule python_module libexec/apache2/mod_python.so
  146. #LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so
  147. LoadModule apple_status_module libexec/apache2/mod_status_apple.so
  148. </IfDefine>
  149.  
  150. # If you wish httpd to run as a different user or group, you must run
  151. # httpd as root initially and it will switch.
  152. #
  153. # User/Group: The name (or #number) of the user/group to run httpd as.
  154. # It is usually good practice to create a dedicated user and group for
  155. # running httpd, as with most system services.
  156. #
  157. User _www
  158. Group _www
  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. [email protected]
  176. #
  177. ServerAdmin [email protected]
  178.  
  179. ##############
  180. #virtual hosts
  181. ##############
  182.  
  183.  
  184. #
  185. # ServerName gives the name and port that the server uses to identify itself.
  186. # This can often be determined automatically, but we recommend you specify
  187. # it explicitly to prevent problems during startup.
  188. #
  189. # If your host doesn't have a registered DNS name, enter its IP address here.
  190. #
  191. #ServerName www.example.com:80
  192.  
  193. <IfDefine MACOSXSERVER>
  194. DocumentRoot /var/empty
  195.  
  196. <IfModule mod_auth_digest_apple.c>
  197. BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
  198. </IfModule>
  199. <IfModule mod_headers.c>
  200. Header add MS-Author-Via "DAV"
  201. RequestHeader set X_FORWARDED_PROTO 'https' env=https
  202. RequestHeader set X_FORWARDED_PROTO 'http' env=!https
  203. </IfModule>
  204. <IfModule mod_encoding.c>
  205. EncodingEngine on
  206. NormalizeUsername on
  207. DefaultClientEncoding UTF-8
  208. # Windows XP?
  209. AddClientEncoding "Microsoft-WebDAV-MiniRedir/" MSUTF-8
  210. # Windows 2K SP2 with .NET
  211. AddClientEncoding "(Microsoft .* DAV\$)" MSUTF-8
  212. # Windows 2K SP2/Windows XP
  213. AddClientEncoding "(Microsoft .* DAV 1.1)" CP932
  214. # Windows XP?
  215. AddClientEncoding "Microsoft-WebDAV*" CP932
  216. # RealPlayer
  217. AddClientEncoding "RMA/*" CP932
  218. # MacOS X webdavfs
  219. AddClientEncoding "WebDAVFS" UTF-8
  220. # cadaver
  221. AddClientEncoding "cadaver/" EUC-JP
  222. </IfModule>
  223. <Directory /usr/share/web>
  224. AllowOverride All
  225. Options MultiViews FollowSymlinks
  226. Order allow,deny
  227. Allow from all
  228. Header Set Cache-Control no-cache
  229. </Directory>
  230. Alias /webmail /usr/share/web/webmail.html
  231. Alias /changepassword /usr/share/web/changepassword.html
  232. Alias /profilemanager /usr/share/web/profilemanager.html
  233. Alias /webcal /usr/share/web/webcal.html
  234. </IfDefine>
  235.  
  236. <IfDefine !MACOSXSERVER>
  237. <IfDefine WEBSHARING_ON>
  238. #
  239. # DocumentRoot: The directory out of which you will serve your
  240. # documents. By default, all requests are taken from this directory, but
  241. # symbolic links and aliases may be used to point to other locations.
  242. #
  243. DocumentRoot "/Users/Ric/Sites"
  244.  
  245. #
  246. # Each directory to which Apache has access can be configured with respect
  247. # to which services and features are allowed and/or disabled in that
  248. # directory (and its subdirectories).
  249. #
  250. # First, we configure the "default" to be a very restrictive set of
  251. # features.
  252. #
  253. <Directory "/Users/Ric/Sites">
  254. Options All
  255. AllowOverride All
  256. Order allow,deny
  257. Allow from all
  258. </Directory>
  259.  
  260. #
  261. # Note that from this point forward you must specifically allow
  262. # particular features to be enabled - so if something's not working as
  263. # you might expect, make sure that you have specifically enabled it
  264. # below.
  265. #
  266.  
  267. #
  268. # This should be changed to whatever you set DocumentRoot to.
  269. #
  270. <Directory "/Users/Ric/Sites">
  271. #
  272. # Possible values for the Options directive are "None", "All",
  273. # or any combination of:
  274. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  275. #
  276. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  277. # doesn't give it to you.
  278. #
  279. # The Options directive is both complicated and important. Please see
  280. # http://httpd.apache.org/docs/2.2/mod/core.html#options
  281. # for more information.
  282. #
  283. Options Indexes FollowSymLinks MultiViews
  284.  
  285. #
  286. # AllowOverride controls what directives may be placed in .htaccess files.
  287. # It can be "All", "None", or any combination of the keywords:
  288. # Options FileInfo AuthConfig Limit
  289. #
  290. AllowOverride All
  291.  
  292. #
  293. # Controls who can get stuff from this server.
  294. #
  295. Order allow,deny
  296. Allow from all
  297.  
  298. </Directory>
  299.  
  300. #
  301. # DirectoryIndex: sets the file that Apache will serve if a directory
  302. # is requested.
  303. #
  304. <IfModule dir_module>
  305. DirectoryIndex index.html
  306. </IfModule>
  307. </IfDefine>
  308. </IfDefine>
  309. #
  310. # The following lines prevent .htaccess and .htpasswd files from being
  311. # viewed by Web clients.
  312. #
  313. <FilesMatch "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
  314. Order allow,deny
  315. Deny from all
  316. Satisfy All
  317. </FilesMatch>
  318.  
  319. #
  320. # Apple specific filesystem protection.
  321. #
  322. <Files "rsrc">
  323. Order allow,deny
  324. Deny from all
  325. Satisfy All
  326. </Files>
  327. <DirectoryMatch ".*\.\.namedfork">
  328. Order allow,deny
  329. Deny from all
  330. Satisfy All
  331. </DirectoryMatch>
  332.  
  333. #
  334. # ErrorLog: The location of the error log file.
  335. # If you do not specify an ErrorLog directive within a <VirtualHost>
  336. # container, error messages relating to that virtual host will be
  337. # logged here. If you *do* define an error logfile for a <VirtualHost>
  338. # container, that host's errors will be logged there and not here.
  339. #
  340. ErrorLog "/private/var/log/apache2/error_log"
  341.  
  342. #
  343. # LogLevel: Control the number of messages logged to the error_log.
  344. # Possible values include: debug, info, notice, warn, error, crit,
  345. # alert, emerg.
  346. #
  347. LogLevel warn
  348.  
  349. <IfModule log_config_module>
  350. #
  351. # The following directives define some format nicknames for use with
  352. # a CustomLog directive (see below).
  353. #
  354. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  355. LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedvhost
  356. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  357. LogFormat "%v %h %l %u %t \"%r\" %>s %b" commonvhost
  358.  
  359. <IfModule logio_module>
  360. # You need to enable mod_logio.c to use %I and %O
  361. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  362. LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinediovhost
  363. </IfModule>
  364.  
  365. #
  366. # The location and format of the access logfile (Common Logfile Format).
  367. # If you do not define any access logfiles within a <VirtualHost>
  368. # container, they will be logged here. Contrariwise, if you *do*
  369. # define per-<VirtualHost> access logfiles, transactions will be
  370. # logged therein and *not* in this file.
  371. #
  372. CustomLog "/private/var/log/apache2/access_log" common
  373.  
  374. #
  375. # If you prefer a logfile with access, agent, and referer information
  376. # (Combined Logfile Format) you can use the following directive.
  377. #
  378. #CustomLog "/private/var/log/apache2/access_log" combined
  379. </IfModule>
  380.  
  381. <IfModule alias_module>
  382. #
  383. # Redirect: Allows you to tell clients about documents that used to
  384. # exist in your server's namespace, but do not anymore. The client
  385. # will make a new request for the document at its new location.
  386. # Example:
  387. # Redirect permanent /foo http://www.example.com/bar
  388.  
  389. #
  390. # Alias: Maps web paths into filesystem paths and is used to
  391. # access content that does not live under the DocumentRoot.
  392. # Example:
  393. # Alias /webpath /full/filesystem/path
  394. #
  395. # If you include a trailing / on /webpath then the server will
  396. # require it to be present in the URL. You will also likely
  397. # need to provide a <Directory> section to allow access to
  398. # the filesystem path.
  399.  
  400. #
  401. # ScriptAlias: This controls which directories contain server scripts.
  402. # ScriptAliases are essentially the same as Aliases, except that
  403. # documents in the target directory are treated as applications and
  404. # run by the server when requested rather than as documents sent to the
  405. # client. The same rules about trailing "/" apply to ScriptAlias
  406. # directives as to Alias.
  407. #
  408. ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1"
  409. </IfModule>
  410.  
  411. <IfModule cgid_module>
  412. #
  413. # ScriptSock: On threaded servers, designate the path to the UNIX
  414. # socket used to communicate with the CGI daemon of mod_cgid.
  415. #
  416. #Scriptsock /private/var/run/cgisock
  417. </IfModule>
  418.  
  419. #
  420. # "/Library/WebServer/CGI-Executables" should be changed to whatever your ScriptAliased
  421. # CGI directory exists, if you have that configured.
  422. #
  423. <Directory "/Library/WebServer/CGI-Executables">
  424. AllowOverride All
  425. Options None
  426. Order allow,deny
  427. Allow from all
  428. </Directory>
  429.  
  430. #
  431. # DefaultType: the default MIME type the server will use for a document
  432. # if it cannot otherwise determine one, such as from filename extensions.
  433. # If your server contains mostly text or HTML documents, "text/plain" is
  434. # a good value. If most of your content is binary, such as applications
  435. # or images, you may want to use "application/octet-stream" instead to
  436. # keep browsers from trying to display binary files as though they are
  437. # text.
  438. #
  439. DefaultType text/plain
  440.  
  441. <IfModule mime_module>
  442. #
  443. # TypesConfig points to the file containing the list of mappings from
  444. # filename extension to MIME-type.
  445. #
  446. TypesConfig /private/etc/apache2/mime.types
  447.  
  448. #
  449. # AddType allows you to add to or override the MIME configuration
  450. # file specified in TypesConfig for specific file types.
  451. #
  452. #AddType application/x-gzip .tgz
  453. #
  454. # AddEncoding allows you to have certain browsers uncompress
  455. # information on the fly. Note: Not all browsers support this.
  456. #
  457. #AddEncoding x-compress .Z
  458. #AddEncoding x-gzip .gz .tgz
  459. #
  460. # If the AddEncoding directives above are commented-out, then you
  461. # probably should define those extensions to indicate media types:
  462. #
  463. AddType application/x-compress .Z
  464. AddType application/x-gzip .gz .tgz
  465.  
  466. #
  467. # AddHandler allows you to map certain file extensions to "handlers":
  468. # actions unrelated to filetype. These can be either built into the server
  469. # or added with the Action directive (see below)
  470. #
  471. # To use CGI scripts outside of ScriptAliased directories:
  472. # (You will also need to add "ExecCGI" to the "Options" directive.)
  473. #
  474. #AddHandler cgi-script .cgi
  475.  
  476. # For type maps (negotiated resources):
  477. #AddHandler type-map var
  478.  
  479. #
  480. # Filters allow you to process content before it is sent to the client.
  481. #
  482. # To parse .shtml files for server-side includes (SSI):
  483. # (You will also need to add "Includes" to the "Options" directive.)
  484. #
  485. #AddType text/html .shtml
  486. #AddOutputFilter INCLUDES .shtml
  487. </IfModule>
  488.  
  489. #
  490. # The mod_mime_magic module allows the server to use various hints from the
  491. # contents of the file itself to determine its type. The MIMEMagicFile
  492. # directive tells the module where the hint definitions are located.
  493. #
  494. #MIMEMagicFile /private/etc/apache2/magic
  495.  
  496. #
  497. # Customizable error responses come in three flavors:
  498. # 1) plain text 2) local redirects 3) external redirects
  499. #
  500. # Some examples:
  501. #ErrorDocument 500 "The server made a boo boo."
  502. #ErrorDocument 404 /missing.html
  503. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  504. #ErrorDocument 402 http://www.example.com/subscription_info.html
  505. #
  506.  
  507. #
  508. # EnableMMAP and EnableSendfile: On systems that support it,
  509. # memory-mapping or the sendfile syscall is used to deliver
  510. # files. This usually improves server performance, but must
  511. # be turned off when serving from networked-mounted
  512. # filesystems or if support for these functions is otherwise
  513. # broken on your system.
  514. #
  515. #EnableMMAP off
  516. #EnableSendfile off
  517.  
  518. TraceEnable off
  519.  
  520. # Supplemental configuration
  521. #
  522. # The configuration files in the /private/etc/apache2/extra/ directory can be
  523. # included to add extra features or to modify the default configuration of
  524. # the server, or you may simply copy their contents here and change as
  525. # necessary.
  526.  
  527. # Server-pool management (MPM prefork specific)
  528. StartServers 1
  529. MinSpareServers 1
  530. MaxSpareServers 1
  531. # ServerLimit and MaxClients support n% syntax which sets them to a
  532. # fraction of the current RLIMIT_NPROC limit.
  533. ServerLimit 50%
  534. MaxClients 50%
  535. ListenBackLog 512
  536. MaxRequestsPerChild 100000
  537.  
  538. # Timeout: The number of seconds before receives and sends time out.
  539. #
  540. Timeout 300
  541.  
  542. # KeepAlive: Whether or not to allow persistent connections (more than
  543. # one request per connection). Set to "Off" to deactivate.
  544. #
  545. KeepAlive On
  546.  
  547. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  548. # same client on the same connection.
  549. #
  550. KeepAliveTimeout 15
  551.  
  552. # MaxKeepAliveRequests: The maximum number of requests to allow
  553. # during a persistent connection. Set to 0 to allow an unlimited amount.
  554. # We recommend you leave this number high, for maximum performance.
  555. #
  556. MaxKeepAliveRequests 100
  557.  
  558. # UseCanonicalName: Determines how Apache constructs self-referencing
  559. # URLs and the SERVER_NAME and SERVER_PORT variables.
  560. # When set "Off", Apache will use the Hostname and Port supplied
  561. # by the client. When set "On", Apache will use the value of the
  562. # ServerName directive.
  563. #
  564. UseCanonicalName Off
  565.  
  566. #
  567. # AccessFileName: The name of the file to look for in each directory
  568. # for additional configuration directives. See also the AllowOverride
  569. # directive.
  570. #
  571. AccessFileName .htaccess
  572.  
  573. # ServerTokens
  574. # This directive configures what you return as the Server HTTP response
  575. # Header. The default is 'Full' which sends information about the OS-Type
  576. # and compiled in modules.
  577. # Set to one of: Full | OS | Minor | Minimal | Major | Prod
  578. # where Full conveys the most information, and Prod the least.
  579. #
  580. ServerTokens Full
  581.  
  582. # Optionally add a line containing the server version and virtual host
  583. # name to server-generated pages (internal error documents, FTP directory
  584. # listings, mod_status and mod_info output etc., but not CGI generated
  585. # documents or custom error documents).
  586. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  587. # Set to one of: On | Off | EMail
  588. #
  589. ServerSignature On
  590.  
  591. # HostnameLookups: Log the names of clients or just their IP addresses
  592. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  593. # The default is off because it'd be overall better for the net if people
  594. # had to knowingly turn this feature on, since enabling it means that
  595. # each client request will result in AT LEAST one lookup request to the
  596. # nameserver.
  597. #
  598. HostnameLookups Off
  599.  
  600. # PidFile: The file in which the server should record its process
  601. # identification number when it starts.
  602. PidFile /var/run/httpd.pid
  603.  
  604. # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
  605. LockFile "/private/var/log/apache2/accept.lock"
  606.  
  607. <IfModule mod_rewrite.c>
  608. RewriteLock /var/log/apache2/rewrite.lock
  609. </IfModule>
  610.  
  611. # Language settings
  612. Include /private/etc/apache2/extra/httpd-languages.conf
  613.  
  614. <IfDefine WEBSHARING_ON>
  615. # Multi -language error messages
  616. #Include /private/etc/apache2/extra/httpd-multilang-errordoc.conf
  617.  
  618. # Fancy directory listings
  619. Include /private/etc/apache2/extra/httpd-autoindex.conf
  620.  
  621. # User home directories
  622. Include /private/etc/apache2/extra/httpd-userdir.conf
  623.  
  624. # Real-time info on requests and configuration
  625. #Include /private/etc/apache2/extra/httpd-info.conf
  626.  
  627. # Virtual hosts
  628. #Include /private/etc/apache2/extra/httpd-vhosts.conf
  629.  
  630. # Local access to the Apache HTTP Server Manual
  631. Include /private/etc/apache2/extra/httpd-manual.conf
  632.  
  633. # Distributed authoring and versioning (WebDAV)
  634. #Include /private/etc/apache2/extra/httpd-dav.conf
  635.  
  636. </IfDefine>
  637.  
  638. # Secure (SSL/TLS) connections
  639. <IfDefine !MACOSXSERVER>
  640. #Include /private/etc/apache2/extra/httpd-ssl.conf
  641. </IfDefine>
  642. <IfDefine MACOSXSERVER>
  643. <IfModule mod_ssl.c>
  644. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  645. SSLPassPhraseDialog exec:/etc/apache2/getsslpassphrase
  646. SSLSessionCache shmcb:/var/run/ssl_scache(512000)
  647. SSLSessionCacheTimeout 300
  648. SSLMutex file:/var/run/ssl_mutex
  649. SSLRandomSeed startup builtin
  650. SSLRandomSeed connect builtin
  651. AddType application/x-x509-ca-cert crt
  652. AddType application/x-pkcs7-crl crl
  653. </IfModule>
  654. </IfDefine>
  655.  
  656. <IfModule mod_jk.c>
  657. JKWorkersFile /etc/apache2/workers.properties
  658. JKLogFile /var/log/apache2/mod_jk.log
  659. JkShmFile /var/log/apache2/jk-runtime-status
  660. </IfModule>
  661.  
  662. <IfModule php5_module>
  663. AddType application/x-httpd-php .php
  664. AddType application/x-httpd-php-source .phps
  665. <IfModule dir_module>
  666. DirectoryIndex index.html index.php
  667. </IfModule>
  668. </IfModule>
  669. <IfDefine !MACOSXSERVER>
  670. Include /etc/apache2/other/*.conf
  671. </IfDefine>
  672. <IfDefine MACOSXSERVER>
  673. <IfDefine WEBSERVICE_ON>
  674. Include /etc/apache2/sites/*.conf
  675. </IfDefine>
  676. <IfDefine !WEBSERVICE_ON>
  677. Include /etc/apache2/sites/virtual_host_global.conf
  678. Include /etc/apache2/sites/*_.conf
  679. Include /etc/apache2/sites/*__shadow.conf
  680. </IfDefine>
  681. </IfDefine>
Advertisement
Add Comment
Please, Sign In to add comment