Advertisement
Guest User

stimburg

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