PageRenderTime 51ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/conf/modules-win.conf

https://bitbucket.org/jameshu/nanoweb
Unknown | 732 lines | 520 code | 212 blank | 0 comment | 0 complexity | dc46bc79ab76e279f8c3daeae4292aae MD5 | raw file
  1. ##################################################
  2. #
  3. # aEGiS nanoweb modules configuration file
  4. #
  5. # ModulesDir defines the directory where the modules are located
  6. ModulesDir = c:\nanoweb\modules\
  7. # Parser modules
  8. ##############################################################################
  9. #
  10. # Static content support (you probably don't want to change this)
  11. #
  12. ##############################################################################
  13. LoadModule = mod_static.php
  14. # Defines the size (in bytes) of the buffer allocated for serving static files
  15. #StaticBufferSize = 1048576
  16. # Uncomment the line below if you want to disallow serving partial content.
  17. # This feature of HTTP is mostly used for resume and by download accelerators.
  18. #StaticDisablePartial = 1
  19. # mod_asis extends mod_static to allow serving of raw content (including HTTP
  20. # headers) from text files.
  21. #LoadModule = mod_asis.php
  22. ##############################################################################
  23. #
  24. # Server Side Includes (SSI) support
  25. #
  26. ##############################################################################
  27. #LoadModule = mod_include.php
  28. ##############################################################################
  29. #
  30. # Common Gateway Interface (CGI) support
  31. #
  32. ##############################################################################
  33. LoadModule = mod_cgi.php
  34. # This option is only here if you plan to use the CGI version of PHP.
  35. # There is a bug still unfixed in PHP-CGI that forbids passing the PATH_INFO
  36. # server var to the scripts. Disable it if it gets fixed one day.
  37. #CGIFilterPathInfo = 1
  38. # Use CGINoHeader to specify a list of HTTP response headers that will be
  39. # blocked by the server (not forwarded to the client browser)
  40. #CGINoHeader = X-Powered-By
  41. # Every file in a directory defined as CGIScriptsDir will be considered as a
  42. # CGI script and will be executed by mod_cgi
  43. #CGIScriptsDir = c:\nanoweb\cgi-bin
  44. #Alias = /cgi-bin/ c:\nanoweb\cgi-bin\
  45. # CGIScriptNoExec defines the behavior of mod_cgi if a file in a CGIScriptsDir
  46. # does not have the executable bit set. Possibles values are :
  47. # "error" : throws an internal server error
  48. # "raw" : sends the raw content of the file
  49. #CGIScriptNoExec = error
  50. ##############################################################################
  51. #
  52. # FastCGI support
  53. #
  54. ##############################################################################
  55. #LoadModule = mod_fcgi.php
  56. # See CGIFilterPathInfo for explanation of this directive.
  57. #FCGIFilterPathInfo = 1
  58. # Use FCGINoHeader to specify a list of HTTP response headers that will be
  59. # blocked by the server (not forwarded to the client browser)
  60. #FCGINoHeader = X-Powered-By
  61. ##############################################################################
  62. #
  63. # BSP (Brainfuck Server Pages) support
  64. #
  65. ##############################################################################
  66. #LoadModule = mod_bsp.php
  67. # Allow display of BF source if url is "http://xxx/xxx.bsp?source" ?
  68. #BSPAllowSource = 1
  69. ##############################################################################
  70. #
  71. # Transparent ZIP archive decompression
  72. #
  73. ##############################################################################
  74. #LoadModule = mod_unzip.php
  75. ##############################################################################
  76. #
  77. # Internal lnk files handler
  78. #
  79. ##############################################################################
  80. #LoadModule = mod_lnk.php
  81. # Content modules
  82. ##############################################################################
  83. #
  84. # Status report module (needed by 'nanoctl status')
  85. #
  86. ##############################################################################
  87. LoadModule = mod_status.php
  88. # Hosts allowed to consult server status through mod_status
  89. StatusAllowHost = 127.0.0.1
  90. StatusAllowHost = 10.0.0.
  91. ##############################################################################
  92. #
  93. # Worms detection support (see README.mod_worms before use)
  94. #
  95. ##############################################################################
  96. #LoadModule = mod_worms.php
  97. # Text that is sent to the offending IIS server console
  98. #WormsWpopText = Your webserver has been infected by an HTTP worm.
  99. #WormsWpopText = We strongly suggest you use a recent anti-virus to scan this computer.
  100. #WormsWpopText = ---
  101. #WormsWpopText = warning sent by nanoweb server at http://$SERVERNAME
  102. # What to do if we have a worm ? ($REMOTE_IP and $REMOTE_HOST can be used)
  103. #WormsRun = /usr/bin/firewall_add $REMOTE_IP
  104. #WormsRun = echo "$REMOTE_HOST" >> /tmp/IIS_rulez
  105. # If you want to block IP of worm infected hosts, specify how long (in seconds)
  106. # with WormsBlockTime (use 'perm' to place a permanent block)
  107. #WormsBlockTime = 7200
  108. # Parser filters support (pfilters)
  109. ##############################################################################
  110. #
  111. # pfilters core, must be loaded before any pfilters module
  112. #
  113. ##############################################################################
  114. LoadModule = mod_pfilters.php
  115. # This directive enables the filter infrastructure, which however has
  116. # no effect until you activate a `Filter' directive.
  117. FilterEnable = 1
  118. # Method handler modules
  119. ##############################################################################
  120. #
  121. # HTTP/1.x PUT method
  122. #
  123. ##############################################################################
  124. #LoadModule = mod_method_PUT.php
  125. # Overwrites if permissions are set to ???????rw?
  126. #WriteAccess = 1
  127. ##############################################################################
  128. #
  129. # HTTP/1.x TRACE method
  130. #
  131. ##############################################################################
  132. #LoadModule = mod_method_TRACE.php
  133. ##############################################################################
  134. #
  135. # HTTP actions handled by dedicated cgi's
  136. #
  137. ##############################################################################
  138. #LoadModule = mod_method_handler.php
  139. # NOTE: the path name to the handler script given here must be absolute to the
  140. # docroot! (not as relaxed as with Filter handlers)
  141. #MethodHandler = FOO /cgi-bin/FOO_handler.php
  142. ##############################################################################
  143. #
  144. # Gzip content encoding pfilter
  145. #
  146. ##############################################################################
  147. LoadModule = mod_gzip.php
  148. # mod_gzip can be enabled in two different ways. The old method
  149. # is to activate it for every served file:
  150. #GzipEnable = 1
  151. # This allows you to enable mod_gzip_filter. This directive can be
  152. # set here (global), for each vhosts, and in access files.
  153. #Filter = text/* gzip
  154. # Max compression ratio (percentage of original size). If it is higher, the
  155. # content is likely to be already compressed and does not need a recompression.
  156. GzipMaxRatio = 90
  157. # Level of compression asked to zlib
  158. GzipLevel = 5
  159. ##############################################################################
  160. #
  161. # HTML filters
  162. #
  163. ##############################################################################
  164. #LoadModule = mod_html_filters.php
  165. # converts to one-line html file
  166. #Filter = text/html shrink
  167. # strtolower(tags)
  168. #Filter = text/html downcase
  169. # html->wml conversion if requested by client
  170. #Filter = text/html wap
  171. # a useful one :)
  172. #Filter = dont/use! garbage
  173. ##############################################################################
  174. #
  175. # Image Filters
  176. #
  177. ##############################################################################
  178. #LoadModule = mod_img_filters.php
  179. # libgd doesn't work with .gif images anymore, so these Filter rules
  180. # won't do any changes to them
  181. #Filter = image/* copyright Š 2002 whoever wants to
  182. #Filter = image/png convert jpeg
  183. #Filter = image/* wbmp 100x60
  184. ##############################################################################
  185. #
  186. # miscellaneous/control filters
  187. #
  188. ##############################################################################
  189. #LoadModule = mod_misc_filters.php
  190. # This filter corresponds to the apache AddHandler/Action directives
  191. #Filter = .ext|http/* handler /cgi-bin/handler.php
  192. # (http) control "filters"
  193. #Filter = text/* nocache
  194. #Filter = text/html addheader Content-Feature: tables,frames,javascript
  195. #Filter = .so|.dll addservervar LD_PRELOAD=/lib:/usr/lib
  196. # Logging modules
  197. ##############################################################################
  198. #
  199. # Standard logging support (console and file logging)
  200. #
  201. ##############################################################################
  202. LoadModule = mod_stdlog.php
  203. # Log every hit to standard outpout ? [0/1]
  204. #LogHitsToConsole = 1
  205. # Log every hit to the server log(s) ? [0/1]
  206. #LogHitsToServerLog = 1
  207. # LogType lets you set the format used for log files output.
  208. # "common" is the NCSA Common Log Format (also known as CLF)
  209. # "common-with-vhost" is the same as CLF, but with support for multiple hosts
  210. # "combined" is the extended CLF format used by Apache (default)
  211. LogType = combined
  212. ##############################################################################
  213. #
  214. # MySQL logging support
  215. #
  216. ##############################################################################
  217. #LoadModule = mod_mysqllog.php
  218. # MySQL Logging module configuration
  219. MySQLLogHost = localhost
  220. MySQLLogDatabase = nanoweb
  221. MySQLLogUser = nanoweb
  222. MySQLLogPassword = nanoweb
  223. # Core modules
  224. ##############################################################################
  225. #
  226. # Access control module
  227. #
  228. ##############################################################################
  229. LoadModule = mod_ac.php
  230. # ACPolicy defines the default access policy and is set to "allow" or "deny"
  231. #ACPolicy = deny
  232. # ACAllowIP and ACAllowHost let you define which remote clients you will allow
  233. # if you set the policy to "deny"
  234. #ACAllowIP = 10.0.0.*
  235. #ACAllowIP = 192.168.*
  236. #ACAllowHost = *.localdomain
  237. # ACDenyIP and ACDenyHost work the same as their Allow counterparts, but will
  238. # deny clients when the policy is set to "allow"
  239. #ACDenyHost = *.aol.com
  240. # ACBlockError is the error code thrown to denied clients (default is 403)
  241. #ACBlockError = 403
  242. # ACBlockMessage is an optional message returned with the error page
  243. #ACBlockMessage = Go away
  244. ##############################################################################
  245. #
  246. # The nanoweb proxy module
  247. #
  248. ##############################################################################
  249. #LoadModule = mod_proxy.php
  250. ProxyCacheDir = c:\nanoweb\proxy\cache\
  251. ProxyAllowIP = 10.0.0
  252. ProxyDenySite = c:\nanoweb\proxy\badsites.txt
  253. ProxyDenyPopup = c:\nanoweb\proxy\popup.txt
  254. ProxyDenyPub = c:\nanoweb\proxy\images.txt
  255. ProxyAccessLog = c:\nanoweb\mod_proxy.log
  256. # 2592000 seconds = 1 month, u can put whatever you want here
  257. ProxyCacheMaxAge = 2592000
  258. ##############################################################################
  259. #
  260. # Email Address Protection Filter
  261. #
  262. ##############################################################################
  263. #LoadModule = mod_emailprotect.php
  264. #Filter = application/x-httpd-php emailprotect
  265. ##############################################################################
  266. #
  267. # URL mispelling support
  268. #
  269. ##############################################################################
  270. LoadModule = mod_mispell.php
  271. # What to do when we catch a mispelled URL ?
  272. # advice : the client is returned a 404 not found page with an link
  273. # redirect : the client is automatically redirected
  274. MispellAction = advice
  275. ##############################################################################
  276. #
  277. # Files and directories browsing module
  278. #
  279. ##############################################################################
  280. LoadModule = mod_fb.php
  281. # Allow browsing of files and directories. You may define this for each
  282. # virtual host
  283. FileBrowser = 1
  284. # FBSortOrder=(name|size|date)[ desc]) defines the sorting order and direction
  285. FBSortOrder = name
  286. # FBDateFormat defines how mod_fb will represent the date and time of each file
  287. # and directory. The format is the same as the PHP date() function.
  288. #FBDateFormat = Y-m-d H:i
  289. FBDateFormat = d-M-Y H:i:s
  290. # Show .xxxxxxx files in browser ?
  291. #FBShowDotFiles = 1
  292. # This file, if found, is displayed before the listing in file browsing mode
  293. FBWelcomeFile = .welcome
  294. # Name of the description file. Format is "filename.ext desc of the file" for
  295. # each line
  296. FBDescFile = .desc
  297. # FBIconByType define icons associated to mime types in file browser.
  298. # Syntax is "FBIconByType = /path/to/icon mime[/type]"
  299. FBIconByType = /icons/exec.gif application
  300. FBIconByType = /icons/pic.gif image
  301. FBIconByType = /icons/son.gif audio
  302. FBIconByType = /icons/txt.gif text
  303. FBIconByType = /icons/video.gif video
  304. # FBIconDirectory define the icon shown for directories in file browser.
  305. FBIconDirectory = /icons/rep.gif
  306. # FBIconDefault define the default icon used in file browser.
  307. FBIconDefault = /icons/misc.gif
  308. ##############################################################################
  309. #
  310. # Download bandwidth limiting
  311. #
  312. ##############################################################################
  313. #LoadModule = mod_throttle.php
  314. # Bandwidth = 16K/s
  315. ##############################################################################
  316. #
  317. # Multiviews support (content negotiation)
  318. #
  319. ##############################################################################
  320. #LoadModule = mod_multiviews.php
  321. # LanguagePriority : A browser requesting http://example.com/ will be delivered
  322. # 'index.html.en' in favour of 'index.html.de' (if the users browser has not
  323. # been configured to request with another language preference). Of course
  324. # this only works if no 'index.html' exists in the docroot, which nanoweb
  325. # otherwise would have preselected. A file called 'index.html.fr.gz' may get
  326. # send in favour of all other variants, because of the higher priority of
  327. # compressed content.
  328. LanguagePriority = en fr de
  329. # OtherPriority : sets priorites which come into use, when the client doesn't
  330. # send an Accept:-header. As you can see, you may intermix file extensions
  331. # (as "php" - without dot!) and mime-types known to nanoweb; where you don't
  332. # specify a priorty value with qs= (0.0 - 1.0) a lesser (divided by 1.7) value
  333. # as the previous one will be choosen.
  334. #OtherPriority = php; qs=0.28, text/html; qs=0.27, text/*
  335. ##############################################################################
  336. #
  337. # RewriteEngine (powerful URI to filename mapping)
  338. #
  339. ##############################################################################
  340. # Please see the manual before use
  341. #LoadModule = mod_rewrite.php
  342. # ReflectRewriting will reflect changes to the requested path name in server
  343. # error responses, when for example the rewritten file name does not exist or
  344. # has no read permissions set; otherwise the url from the request will be
  345. # printed in such server messages.
  346. # Note: This config directive affects mod_multiviews as well.
  347. #ReflectRewriting = 1
  348. ##############################################################################
  349. #
  350. # Message digest support
  351. #
  352. ##############################################################################
  353. #LoadModule = mod_digest.php
  354. # Enable DigestMD5 to make nanoweb generate a "Content-MD5" response header
  355. # whenever it's possible (static content, not too large)
  356. #DigestMD5 = 1
  357. ##############################################################################
  358. #
  359. # HTML meta-information extractor
  360. #
  361. ##############################################################################
  362. # Extracts meta-information from hypertext files and makes http-equiv data
  363. # available as standard https header inside nanoweb. Data from a companion
  364. # .meta file is additionally appended to the http headers
  365. #LoadModule = mod_meta.php
  366. # MetaFetch defines how the meta information will be fetched from the HTML
  367. # document. It can be set to "fast", "regex" ,"no" or "0"
  368. #MetaFetch = fast
  369. ##############################################################################
  370. #
  371. # RBL use (see http://mail-abuse.org/rbl)
  372. #
  373. ##############################################################################
  374. #LoadModule = mod_access_rbl.php
  375. # dns or web, dns is more faster thant web
  376. #Access_RBL = dns
  377. ##############################################################################
  378. #
  379. # Server Load Limit
  380. #
  381. ##############################################################################
  382. #LoadModule = mod_load_limit.php
  383. # Defines the maximum load average after which the server will return an error
  384. # and won't serve documents until load goes down.
  385. LoadLimit = 10.0
  386. # LoadLimitAction can be set to "error" if you want to generate an error page
  387. # on overload, or "redir" to redirect to another page/site.
  388. LoadLimitAction = error
  389. # If LoadLimitAction is set to "redir", LoadLimitRedirect is the site the
  390. # client browser will be pointed to.
  391. #LoadLimitRedirect = http://www.example.com/overloaded.html
  392. #LoadLimitRedirect = http://www2.example.com%REQUEST_URI
  393. # If LoadLimitError is set to "error", the server will return LoadLimitError as
  394. # HTTP error number. The default is 503 which means Service Unavailable.
  395. LoadLimitError = 503
  396. # This is the message displayed in the error page. %CUR_LOAD and %MAX_LOAD are
  397. # replaced by the current load average, and the maximum allowed load average.
  398. LoadLimitErrorMessage = Server load is too high (<b>%CUR_LOAD/%MAX_LOAD</b>), tr
  399. y again in a few moments.
  400. ##############################################################################
  401. #
  402. # DoS Evasive module
  403. #
  404. ##############################################################################
  405. #LoadModule = mod_dosevasive.php
  406. # Delay in seconds
  407. #DosEvasiveTimer = 10
  408. # Maximum allowed number of requests for one resource in DosEvasiveTimer sec.
  409. #DosEvasiveMaxReqs = 5
  410. # Error thrown if the maximum is reached, 403 Forbidden is a good default
  411. #DosEvasiveError = 403
  412. # If you want to block IP of DoSing hosts, specify how long (in seconds) with
  413. # the DosEvasiveBlockTime (use 'perm' to place a permanent block)
  414. #DosEvasiveBlockTime = 120
  415. # Authentication modules
  416. ##############################################################################
  417. #
  418. # Simple authentication
  419. #
  420. ##############################################################################
  421. LoadModule = mod_auth_simple.php
  422. # Use these directives in a conf/vhost/access file to use mod_auth_simple
  423. #
  424. # AuthRealm = your auth realm name here
  425. # AuthRequire = SIMPLE
  426. # AuthSimpleUserPass = login1 pass1
  427. # AuthSimpleUserPass = login2 pass2
  428. # ...
  429. # AuthSimpleUserPass = loginN passN
  430. ##############################################################################
  431. #
  432. # Backwards compatible .nwauth authentication
  433. #
  434. ##############################################################################
  435. LoadModule = mod_auth_nwauth.php
  436. # Use these directives in a conf/vhost/access file to use mod_auth_nwauth
  437. #
  438. # AuthRealm = your auth realm name here
  439. # AuthRequire = NWAUTH
  440. # AuthNwauthFilename = c:\nanoweb\vhosts\www.example.com\admin\.nwauth
  441. ##############################################################################
  442. #
  443. # Apache compatible .htpasswd authentication
  444. #
  445. ##############################################################################
  446. #LoadModule = mod_auth_htpasswd.php
  447. # Use these directives in a conf/vhost/access file to use mod_auth_htpasswd
  448. #
  449. # AuthRealm = your auth realm name here
  450. # AuthRequire = HTPASSWD
  451. # AuthHtpasswdFilename = c:\nanoweb\vhosts\www.example.com\admin\.htpasswd
  452. ##############################################################################
  453. #
  454. # MySQL based authentication
  455. #
  456. ##############################################################################
  457. #LoadModule = mod_auth_mysql.php
  458. # Use these directives in a conf/vhost/access file to use mod_auth_mysql
  459. #
  460. # AuthRealm = your auth realm name here
  461. # AuthRequire = MYSQL
  462. # AuthMysqlHost = localhost
  463. # AuthMysqlUser = db_user
  464. # AuthMysqlPass = db_pass
  465. # AuthMysqlDB = db_name
  466. # AuthMysqlTable = table_name
  467. # AuthMysqlPassType = plain | crypt | md5 | mysql
  468. # AuthMysqlLoginColumn = login_field_name
  469. # AuthMysqlPassColumn = password_field_name
  470. #
  471. # Password types are
  472. #
  473. # plain : password is plaintext
  474. # crypt : password is hashed using the system crypt()
  475. # md5 : password is hashed using the md5 algorithm
  476. # mysql : password is hashed using the mysql password algorithm
  477. ##############################################################################
  478. #
  479. # Database based authentication via abstraction layer
  480. #
  481. ##############################################################################
  482. # AnydbLoadInterface = /usr/local/php/adodb/adodb.inc.php
  483. # AnydbLoadInterface = /usr/local/php/DB.php
  484. #LoadModule = mod_auth_anydb.php
  485. # AuthRealm = your auth realm name here
  486. # AuthRequire = ANYDB
  487. # AuthAnydb = database://db_user:db_pass@localhost/db_name/table_name
  488. # AuthAnydbLoginColumn = login_field_name
  489. # AuthAnydbPassColumn = password_field_name
  490. ##############################################################################
  491. #
  492. # Anonymous authentication (ftp-like)
  493. #
  494. ##############################################################################
  495. #LoadModule = mod_auth_anonymous.php
  496. # AuthAnonymousNames = anonymous anonym guest nobody
  497. # AuthAnonymousSmtpCheck = 0
  498. # AuthRealm = your auth realm name here
  499. # AuthRequire = ANONYMOUS
  500. ##############################################################################
  501. #
  502. # IP Address blocking management
  503. #
  504. ##############################################################################
  505. LoadModule = mod_blockadm.php
  506. BlockAdmAllowIP = 127.0.0.1
  507. ##############################################################################
  508. #
  509. # WWW Spam filtering
  510. #
  511. ##############################################################################
  512. #LoadModule = mod_nospam.php
  513. #SpamBlockError = 403
  514. #SpamBlockMessage = Something in the content you submited has been identified as www spam, your IP address has now been blocked from this server.
  515. #SpamBlockTime = 86400
  516. #SpamCheck = GET POST
  517. #SpamRegex = /http:\/\/[a-zA-Z0-9.-]+\.ru/i
  518. #SpamRegex = /<script>/i
  519. #SpamRegex = /@[^ \r\n\.]+\.ru/i
  520. #SpamRewriteLinks = rel="nofollow"