Advertisement
larkz

Server2Go Conf

Sep 16th, 2012
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.10 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 "C:/Programme/Apache Software Foundation/Apache2.2" will be interpreted by the
  18. # server as "C:/Programme/Apache Software Foundation/Apache2.2/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 Apache.exe is located
  23. # will be used by default. It is recommended that you always supply
  24. # an explicit drive letter in absolute paths, however, to avoid
  25. # confusion.
  26. #
  27.  
  28. # ThreadsPerChild: constant number of worker threads in the server process
  29. # MaxRequestsPerChild: maximum number of requests a server process serves
  30. ThreadsPerChild 250
  31. MaxRequestsPerChild 0
  32.  
  33. #
  34. # ServerRoot: The top of the directory tree under which the server's
  35. # configuration, error, and log files are kept.
  36. #
  37. # Do not add a slash at the end of the directory path. If you point
  38. # ServerRoot at a non-local disk, be sure to point the LockFile directive
  39. # at a local disk. If you wish to share the same ServerRoot for multiple
  40. # httpd daemons, you will need to change at least LockFile and PidFile.
  41. #
  42. ServerRoot "%CDPMS:SRVDIR%Apache"
  43.  
  44. #
  45. # ScoreBoardFile: File used to store internal server process information.
  46. # If unspecified (the default), the scoreboard will be stored in an
  47. # anonymous shared memory segment, and will be unavailable to third-party
  48. # applications.
  49. # If specified, ensure that no two invocations of Apache share the same
  50. # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
  51. #
  52. #ScoreBoardFile "%CDPMS:RTDIR%apache_runtime_status"
  53.  
  54. #
  55. # PidFile: The file in which the server should record its process
  56. # identification number when it starts.
  57. #
  58. PidFile "%CDPMS:RTDIR%httpd.pid"
  59.  
  60. #
  61. # Listen: Allows you to bind Apache to specific IP addresses and/or
  62. # ports, instead of the default. See also the <VirtualHost>
  63. # directive.
  64. #
  65. # Change this to Listen on specific IP addresses as shown below to
  66. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  67. #
  68. #Listen 12.34.56.78:80
  69. Listen %CDPMS:HOST%:%CDPMS:PORT%
  70.  
  71. #
  72. # Dynamic Shared Object (DSO) Support
  73. #
  74. # To be able to use the functionality of a module which was built as a DSO you
  75. # have to place corresponding `LoadModule' lines at this location so the
  76. # directives contained in it are actually available _before_ they are used.
  77. # Statically compiled modules (those listed by `httpd -l') do not need
  78. # to be loaded here.
  79. #
  80. # Example:
  81. # LoadModule foo_module modules/mod_foo.so
  82. #
  83. LoadModule actions_module modules/mod_actions.so
  84. LoadModule alias_module modules/mod_alias.so
  85. LoadModule asis_module modules/mod_asis.so
  86. LoadModule auth_basic_module modules/mod_auth_basic.so
  87. #LoadModule auth_digest_module modules/mod_auth_digest.so
  88. #LoadModule authn_anon_module modules/mod_authn_anon.so
  89. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  90. LoadModule authn_default_module modules/mod_authn_default.so
  91. LoadModule authn_file_module modules/mod_authn_file.so
  92. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  93. LoadModule authz_default_module modules/mod_authz_default.so
  94. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  95. LoadModule authz_host_module modules/mod_authz_host.so
  96. LoadModule authz_user_module modules/mod_authz_user.so
  97. LoadModule autoindex_module modules/mod_autoindex.so
  98. #LoadModule cern_meta_module modules/mod_cern_meta.so
  99. LoadModule cgi_module modules/mod_cgi.so
  100. #LoadModule dav_module modules/mod_dav.so
  101. #LoadModule dav_fs_module modules/mod_dav_fs.so
  102. #LoadModule deflate_module modules/mod_deflate.so
  103. LoadModule dir_module modules/mod_dir.so
  104. LoadModule env_module modules/mod_env.so
  105. #LoadModule expires_module modules/mod_expires.so
  106. #LoadModule file_cache_module modules/mod_file_cache.so
  107. #LoadModule headers_module modules/mod_headers.so
  108. LoadModule imagemap_module modules/mod_imagemap.so
  109. LoadModule include_module modules/mod_include.so
  110. #LoadModule info_module modules/mod_info.so
  111. LoadModule isapi_module modules/mod_isapi.so
  112. LoadModule log_config_module modules/mod_log_config.so
  113. LoadModule mime_module modules/mod_mime.so
  114. #LoadModule mime_magic_module modules/mod_mime_magic.so
  115. #LoadModule proxy_module modules/mod_proxy.so
  116. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  117. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  118. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  119. #LoadModule proxy_http_module modules/mod_proxy_http.so
  120. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  121. LoadModule negotiation_module modules/mod_negotiation.so
  122. LoadModule rewrite_module modules/mod_rewrite.so
  123. LoadModule setenvif_module modules/mod_setenvif.so
  124. #LoadModule speling_module modules/mod_speling.so
  125. #LoadModule status_module modules/mod_status.so
  126. #LoadModule unique_id_module modules/mod_unique_id.so
  127. LoadModule userdir_module modules/mod_userdir.so
  128. #LoadModule usertrack_module modules/mod_usertrack.so
  129. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  130. #LoadModule ssl_module modules/mod_ssl.so
  131. LoadModule php5_module "%CDPMS:SRVDIR%php\php5apache2_2.dll"
  132.  
  133. # 'Main' server configuration
  134. #
  135. # The directives in this section set up the values used by the 'main'
  136. # server, which responds to any requests that aren't handled by a
  137. # <VirtualHost> definition. These values also provide defaults for
  138. # any <VirtualHost> containers you may define later in the file.
  139. #
  140. # All of these directives may appear inside <VirtualHost> containers,
  141. # in which case these default settings will be overridden for the
  142. # virtual host being defined.
  143. #
  144.  
  145. #
  146. # ServerAdmin: Your address, where problems with the server should be
  147. # e-mailed. This address appears on some server-generated pages, such
  148. # as error documents. e.g. admin@your-domain.com
  149. #
  150. ServerAdmin problem@shiftup.de
  151.  
  152. #
  153. # ServerName gives the name and port that the server uses to identify itself.
  154. # This can often be determined automatically, but we recommend you specify
  155. # it explicitly to prevent problems during startup.
  156. #
  157. # If your host doesn't have a registered DNS name, enter its IP address here.
  158. #
  159. ServerName %CDPMS:HOST%
  160.  
  161. #
  162. # DocumentRoot: The directory out of which you will serve your
  163. # documents. By default, all requests are taken from this directory, but
  164. # symbolic links and aliases may be used to point to other locations.
  165. #
  166. DocumentRoot "%CDPMS:DOCROOT%"
  167.  
  168. #
  169. # Each directory to which Apache has access can be configured with respect
  170. # to which services and features are allowed and/or disabled in that
  171. # directory (and its subdirectories).
  172. #
  173. # First, we configure the "default" to be a very restrictive set of
  174. # features.
  175. #
  176. <Directory />
  177. Options FollowSymLinks
  178. AllowOverride None
  179. Order deny,allow
  180. Deny from all
  181. Satisfy 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 "%CDPMS:DOCROOT%">
  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 MultiViews Includes ExecCGI
  208. AddType text/html .shtml
  209. AddHandler server-parsed .shtml
  210. AddHandler cgi-script .cgi .pl
  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 All
  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.php index.html index.htm index.php4 index.php3 index.cgi index.pl index.html.var index.phtml default.htm default.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. </FilesMatch>
  243.  
  244. #
  245. # ErrorLog: The location of the error log file.
  246. # If you do not specify an ErrorLog directive within a <VirtualHost>
  247. # container, error messages relating to that virtual host will be
  248. # logged here. If you *do* define an error logfile for a <VirtualHost>
  249. # container, that host's errors will be logged there and not here.
  250. #
  251. ErrorLog "%CDPMS:RTDIR%error.log"
  252.  
  253. #
  254. # LogLevel: Control the number of messages logged to the error_log.
  255. # Possible values include: debug, info, notice, warn, error, crit,
  256. # alert, emerg.
  257. #
  258. LogLevel warn
  259.  
  260. <IfModule log_config_module>
  261. #
  262. # The following directives define some format nicknames for use with
  263. # a CustomLog directive (see below).
  264. #
  265. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  266. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  267.  
  268. <IfModule logio_module>
  269. # You need to enable mod_logio.c to use %I and %O
  270. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  271. </IfModule>
  272.  
  273. #
  274. # The location and format of the access logfile (Common Logfile Format).
  275. # If you do not define any access logfiles within a <VirtualHost>
  276. # container, they will be logged here. Contrariwise, if you *do*
  277. # define per-<VirtualHost> access logfiles, transactions will be
  278. # logged therein and *not* in this file.
  279. #
  280. CustomLog "%CDPMS:RTDIR%access.log" common
  281.  
  282. #
  283. # If you prefer a logfile with access, agent, and referer information
  284. # (Combined Logfile Format) you can use the following directive.
  285. #
  286. #CustomLog logs/access.log combined
  287. </IfModule>
  288.  
  289. <IfModule alias_module>
  290. #
  291. # Redirect: Allows you to tell clients about documents that used to
  292. # exist in your server's namespace, but do not anymore. The client
  293. # will make a new request for the document at its new location.
  294. # Example:
  295. # Redirect permanent /foo http://nb-de-tk-tha.rotex.de/bar
  296.  
  297. #
  298. # Alias: Maps web paths into filesystem paths and is used to
  299. # access content that does not live under the DocumentRoot.
  300. # Example:
  301. # Alias /webpath /full/filesystem/path
  302. #
  303. # If you include a trailing / on /webpath then the server will
  304. # require it to be present in the URL. You will also likely
  305. # need to provide a <Directory> section to allow access to
  306. # the filesystem path.
  307.  
  308. #
  309. # ScriptAlias: This controls which directories contain server scripts.
  310. # ScriptAliases are essentially the same as Aliases, except that
  311. # documents in the target directory are treated as applications and
  312. # run by the server when requested rather than as documents sent to the
  313. # client. The same rules about trailing "/" apply to ScriptAlias
  314. # directives as to Alias.
  315. #
  316. ScriptAlias /cgi-bin "%CDPMS:BASEDIR%cgi-bin"
  317. Alias /phpmyadmin "%CDPMS:BASEDIR%admin\phpmyadmin"
  318.  
  319. </IfModule>
  320.  
  321. #
  322. # "C:/Programme/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
  323. # CGI directory exists, if you have that configured.
  324. #
  325. <Directory "%CDPMS:BASEDIR%cgi-bin">
  326. AllowOverride None
  327. Options Includes ExecCGI
  328. AddHandler server-parsed .shtml
  329. AddHandler cgi-script .cgi .pl
  330. Order allow,deny
  331. Allow from all
  332. </Directory>
  333.  
  334. <Directory "%CDPMS:BASEDIR%admin\phpmyadmin">
  335. Options Indexes MultiViews
  336. AllowOverride None
  337. Order allow,deny
  338. Allow from all
  339. </Directory>
  340.  
  341. #
  342. # Apache parses all CGI scripts for the shebang line by default.
  343. # This comment line, the first line of the script, consists of the symbols
  344. # pound (#) and exclamation (!) followed by the path of the program that
  345. # can execute this specific script. For a perl script, with perl.exe in
  346. # the C:\Program Files\Perl directory, the shebang line should be:
  347.  
  348. #!c:/program files/perl/perl
  349.  
  350. # Note you _must_not_ indent the actual shebang line, and it must be the
  351. # first line of the file. Of course, CGI processing must be enabled by
  352. # the appropriate ScriptAlias or Options ExecCGI directives for the files
  353. # or directory in question.
  354. #
  355. # However, Apache on Windows allows either the Unix behavior above, or can
  356. # use the Registry to match files by extention. The command to execute
  357. # a file of this type is retrieved from the registry by the same method as
  358. # the Windows Explorer would use to handle double-clicking on a file.
  359. # These script actions can be configured from the Windows Explorer View menu,
  360. # 'Folder Options', and reviewing the 'File Types' tab. Clicking the Edit
  361. # button allows you to modify the Actions, of which Apache 1.3 attempts to
  362. # perform the 'Open' Action, and failing that it will try the shebang line.
  363. # This behavior is subject to change in Apache release 2.0.
  364. #
  365. # Each mechanism has it's own specific security weaknesses, from the means
  366. # to run a program you didn't intend the website owner to invoke, and the
  367. # best method is a matter of great debate.
  368. #
  369. # To enable the this Windows specific behavior (and therefore -disable- the
  370. # equivilant Unix behavior), uncomment the following directive:
  371. #
  372. #ScriptInterpreterSource registry
  373. #
  374. # The directive above can be placed in individual <Directory> blocks or the
  375. # .htaccess file, with either the 'registry' (Windows behavior) or 'script'
  376. # (Unix behavior) option, and will override this server default option.
  377. #
  378.  
  379. #
  380. # DefaultType: the default MIME type the server will use for a document
  381. # if it cannot otherwise determine one, such as from filename extensions.
  382. # If your server contains mostly text or HTML documents, "text/plain" is
  383. # a good value. If most of your content is binary, such as applications
  384. # or images, you may want to use "application/octet-stream" instead to
  385. # keep browsers from trying to display binary files as though they are
  386. # text.
  387. #
  388. DefaultType text/plain
  389.  
  390. <IfModule mime_module>
  391. #
  392. # TypesConfig points to the file containing the list of mappings from
  393. # filename extension to MIME-type.
  394. #
  395. TypesConfig conf/mime.types
  396.  
  397. #
  398. # AddType allows you to add to or override the MIME configuration
  399. # file specified in TypesConfig for specific file types.
  400. #
  401. #AddType application/x-gzip .tgz
  402. AddType application/vnd.openxmlformats .docx .pptx .xlsx
  403.  
  404. #
  405. # AddEncoding allows you to have certain browsers uncompress
  406. # information on the fly. Note: Not all browsers support this.
  407. #
  408. #AddEncoding x-compress .Z
  409. #AddEncoding x-gzip .gz .tgz
  410. #
  411. # If the AddEncoding directives above are commented-out, then you
  412. # probably should define those extensions to indicate media types:
  413. #
  414. AddType application/x-compress .Z
  415. AddType application/x-gzip .gz .tgz
  416. AddType application/x-httpd-php .php
  417.  
  418. #
  419. # AddHandler allows you to map certain file extensions to "handlers":
  420. # actions unrelated to filetype. These can be either built into the server
  421. # or added with the Action directive (see below)
  422. #
  423. # To use CGI scripts outside of ScriptAliased directories:
  424. # (You will also need to add "ExecCGI" to the "Options" directive.)
  425. #
  426. #AddHandler cgi-script .cgi
  427.  
  428. # For type maps (negotiated resources):
  429. #AddHandler type-map var
  430.  
  431. #
  432. # Filters allow you to process content before it is sent to the client.
  433. #
  434. # To parse .shtml files for server-side includes (SSI):
  435. # (You will also need to add "Includes" to the "Options" directive.)
  436. #
  437. #AddType text/html .shtml
  438. #AddOutputFilter INCLUDES .shtml
  439. </IfModule>
  440.  
  441. #
  442. # The mod_mime_magic module allows the server to use various hints from the
  443. # contents of the file itself to determine its type. The MIMEMagicFile
  444. # directive tells the module where the hint definitions are located.
  445. #
  446. #MIMEMagicFile conf/magic
  447.  
  448. #
  449. # Customizable error responses come in three flavors:
  450. # 1) plain text 2) local redirects 3) external redirects
  451. #
  452. # Some examples:
  453. #ErrorDocument 500 "The server made a boo boo."
  454. #ErrorDocument 404 /missing.html
  455. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  456. #ErrorDocument 402 http://nb-de-tk-tha.rotex.de/subscription_info.html
  457. #
  458.  
  459. #
  460. # EnableMMAP and EnableSendfile: On systems that support it,
  461. # memory-mapping or the sendfile syscall is used to deliver
  462. # files. This usually improves server performance, but must
  463. # be turned off when serving from networked-mounted
  464. # filesystems or if support for these functions is otherwise
  465. # broken on your system.
  466. #
  467. #EnableMMAP off
  468. #EnableSendfile off
  469.  
  470. # Supplemental configuration
  471. #
  472. # The configuration files in the conf/extra/ directory can be
  473. # included to add extra features or to modify the default configuration of
  474. # the server, or you may simply copy their contents here and change as
  475. # necessary.
  476.  
  477. # Server-pool management (MPM specific)
  478. #Include conf/extra/httpd-mpm.conf
  479.  
  480. # Multi-language error messages
  481. #Include conf/extra/httpd-multilang-errordoc.conf
  482.  
  483. # Fancy directory listings
  484. #Include conf/extra/httpd-autoindex.conf
  485.  
  486. # Language settings
  487. #Include conf/extra/httpd-languages.conf
  488.  
  489. # User home directories
  490. #Include conf/extra/httpd-userdir.conf
  491.  
  492. # Real-time info on requests and configuration
  493. #Include conf/extra/httpd-info.conf
  494.  
  495. # Virtual hosts
  496. #Include conf/extra/httpd-vhosts.conf
  497.  
  498. # Local access to the Apache HTTP Server Manual
  499. #Include conf/extra/httpd-manual.conf
  500.  
  501. # Distributed authoring and versioning (WebDAV)
  502. #Include conf/extra/httpd-dav.conf
  503.  
  504. # Various default settings
  505. #Include conf/extra/httpd-default.conf
  506.  
  507. # Secure (SSL/TLS) connections
  508. #Include conf/extra/httpd-ssl.conf
  509. #
  510. # Note: The following must must be present to support
  511. # starting without SSL on platforms with no /dev/random equivalent
  512. # but a statically compiled-in mod_ssl.
  513. #
  514. <IfModule ssl_module>
  515. SSLRandomSeed startup builtin
  516. SSLRandomSeed connect builtin
  517. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement