Advertisement
Guest User

httpd.conf

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