Advertisement
Vodkaholic

Untitled

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