Advertisement
mauricioribeiro

httpd.conf Wamp - php_python

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