Guest User

Untitled

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