Guest User

livestreet

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