Advertisement
Guest User

Untitled

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