PageRenderTime 58ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/conf/nanoweb-win.conf

https://bitbucket.org/jameshu/nanoweb
Unknown | 221 lines | 174 code | 47 blank | 0 comment | 0 complexity | 1dd547f273ea28119ba4ab14c0b8ac20 MD5 | raw file
  1. ##################################################
  2. #
  3. # aEGiS nanoweb configuration file
  4. # (c)2002-2003 by sIX / aEGiS <six@aegis-corp.org>
  5. #
  6. # The server mode is either "standalone" or "inetd". Use of the standalone
  7. # mode is strongly recommended
  8. ServerMode = standalone
  9. # IP address and port the server will listen on
  10. ListenInterface = 0.0.0.0
  11. ListenPort = 80
  12. # Maximum number of queued connections
  13. ListenQueue = 20
  14. # Maximum number of http requests per connection (0 to disable keep-alive)
  15. KeepAlive = 0
  16. # Time to wait for http request before closing connection
  17. RequestTimeout = 15
  18. # This is used to force nanoweb in single process mode. You should uncomment
  19. # it when running in win32 or if your php binary was not compiled with pcntl
  20. SingleProcessMode = 1
  21. # Maximum number of child processes allowed to run at the same time
  22. #MaxServers = 100
  23. # The absolute maximum time (seconds) a child process is allowed to live
  24. ChildLifeTime = 21600
  25. # Use MaxRequestBodyLength in the global section or per vhost, to specify a
  26. # maximum length for POST request entities
  27. #MaxRequestBodyLength = 8192000
  28. # MaxRequestURILength works like MaxRequestBodyLength except that it enforces
  29. # a length limit on the requested URI (including query string)
  30. #MaxRequestURILength = 1024
  31. # This is the default content type sent when the server cannot determine a
  32. # MIME-type by examining the extensions of the requested file
  33. DefaultContentType = text/plain
  34. # Location of the nanoweb config directory, this is where nanoweb will search
  35. # first for files used with "Include" and "LoadTheme" directives
  36. ConfigDir = c:\nanoweb
  37. # Include modules configuration
  38. Include = modules.conf
  39. # Location of the nanoweb pid file (needed by start/stop script nanoctl)
  40. PidFile = c:\nanoweb\nanoweb.pid
  41. # Should nanoweb look for reverse DNS on each connection ?
  42. HostnameLookups = 1
  43. # Defines which of the "server" or "logger" process should do the reverse DNS
  44. # query. Server has the advantage of providing your scripts/modules with the
  45. # remote hostname. Logger should make the server faster.
  46. HostnameLookupsBy = server
  47. # The LoadTheme directive loads a server theme file and register it for use
  48. # with ServerTheme
  49. LoadTheme = default.theme
  50. LoadTheme = nanoweb.theme
  51. #LoadTheme = fancy.theme
  52. # Defines which server theme will be used to render internal content. This
  53. # directive can be used here, by vhost or in access files
  54. #ServerTheme = default
  55. ServerTheme = nanoweb
  56. # Location of your mime types file
  57. MimeTypes = c:\nanoweb\mime.types
  58. # Uncomment this to disable fallback to automatic mime type guessing
  59. #DisableMimeMagic = 1
  60. # DefaultHandler defines which parser module should be the default content
  61. # handler (if there are no matches by ParseExt)
  62. DefaultHandler = static
  63. # Define which extensions will be parsed and how.
  64. # Syntax is ParseExt = extension TYPE [parameters]
  65. # Valid types are defined by the modules you loaded. Parameters are type
  66. # dependant (CGI takes path to CGI program, FCGI to FastCGI server socket)
  67. # Note: For PHP CGI, you must specify the path of your php CGI binary, not
  68. # the CLI interpreter.
  69. ParseExt = shtml SSI
  70. ParseExt = exe CGI $SCRIPT_FILENAME
  71. ParseExt = php CGI c:\php\php-cgi.exe
  72. ParseExt = php3 CGI c:\php\php-cgi.exe
  73. ParseExt = php4 CGI c:\php\php-cgi.exe
  74. #ParseExt = asis asis
  75. #ParseExt = bsp BSP text/html
  76. #ParseExt = pl CGI c:\perl5\perl.exe $SCRIPT_FILENAME
  77. #ParseExt = phpf FCGI localhost:9000
  78. #ParseExt = zip UNZIP
  79. #ParseExt = lnk LNK
  80. # Temporary directory, nanoweb must have read/write access to it
  81. TempDir = c:\nanoweb\tmp
  82. # The name of the access file. Access files can be placed at any location
  83. # inside the document root, and allow override of the default configuration
  84. # values for every document in the directory and all its subdirectories.
  85. AccessFile = .nwaccess
  86. # This defines the default access files policy regarding configuration values
  87. # overriding. AccessPolicy can take three values :
  88. # block - set the default policy to block access files overrides
  89. # override - set the default policy to override conf values with access files
  90. # merge - set the default policy to merge conf and access values
  91. AccessPolicy = override
  92. # AccessBlock, AccessOverride and AccessMerge allow you to define an access
  93. # policy for individual conf/access directives
  94. AccessMerge = alias
  95. AccessMerge = parseext
  96. AccessMerge = errordocument
  97. #AccessBlock = serveradmin
  98. # Setting this to 1 will make nanoweb ignore .xxx files. This option is here
  99. # mostly for security and it's often a good thing to enable it unless you know
  100. # exactly what you are doing (think access and auth files).
  101. IgnoreDotFiles = 1
  102. # Should we allow serving of documents outside the document root in case we
  103. # have a symbolic link pointing there ? If needed, use AllowSymlinkTo to
  104. # provide a list of allowed targets for symbolic links. To allow all symbolic
  105. # links, use "AllowSymlinkTo = /".
  106. #AllowSymlinkTo = c:\nanoweb\defaultroot\
  107. #AllowSymlinkTo = c:\nanoweb\nanoconfig\
  108. # If AllowPathInfo is enabled, nanoweb will allow URLs like this one :
  109. # http://www.example.com/script.php/arg1/arg2
  110. AllowPathInfo = 1
  111. # Every PathInfoExt entry will be tested when nanoweb is looking for path info.
  112. # For example, "PathInfoTryExt = php" allows you to call the above URL (in the
  113. # AllowPathInfo example) like this : http://www.example.com/script/arg1/arg2
  114. PathInfoTryExt = php
  115. #PathInfoTryExt = bsp
  116. # The default server name
  117. ServerName = localhost
  118. # The e-mail address of the server administrator. Can be set for each vhost.
  119. ServerAdmin = root@localhost
  120. # ServerSignature defines which server string is sent with every HTTP reponse.
  121. # Valid types are :
  122. # off - no server string at all
  123. # prod - only product name
  124. # min - product name and version
  125. # os - min + operating system name
  126. # php - os + php version
  127. # full - php + modules tokens
  128. # fake - any fake server string you define with ServerFakeSignature
  129. ServerSignature = full
  130. # The fake server string which is sent if ServerSignature = fake
  131. #ServerFakeSignature = Microsoft-IIS/5.0 with Nimda extensions
  132. # A list of headers to add to HTTP responses. Can be set for each vhost.
  133. #AddHeader = X-Powered-By: beer
  134. # A list of headers to add to HTTP error responses. Can be set for each vhost.
  135. #ErrorHeader = X-Powered-By: WindowsXP
  136. # Documents to send on errors. Must reside in document root.
  137. # Syntax is ErrorDocument = ERRNUM document.ext
  138. #ErrorDocument = 404 error404.php
  139. #ErrorDocument = 401 error401.php
  140. # Server logs definitions. Syntax is "ServerLog = logfile logmodes".
  141. # Available modes are : debug, hit, notice, warning, error, all and default
  142. ServerLog = c:\nanoweb\log\server.log default
  143. ServerLog = c:\nanoweb\log\error.log warning+error
  144. # Default user and group nanoweb will run as.
  145. User = www-data
  146. Group = www-data
  147. # Logger Process support. If enabled, nanoweb will spawn logger processes at
  148. # launch and all logging will be done by them. This can help if you are using
  149. # User or Group directives or simply want more performance from the server.
  150. # Set to the number of loggers you want, or 0 to disable.
  151. LoggerProcess = 2
  152. # User and group the nanoweb loggers will run as
  153. #LoggerUser = www-data
  154. #LoggerGroup = www-data
  155. # LogDir let you specify the directory where nanoweb will write its log files
  156. LogDir = c:\nanoweb\log
  157. # Default site configuration
  158. DocumentRoot = c:\nanoweb\www\default
  159. DirectoryIndex = index.php index.html
  160. #DirectoryIndex = index.html /var/www/browse-dir.php
  161. Log = access.log
  162. # User directory, this is where nanoweb will look when parsing an URL like
  163. # http://webserver/~user. This path is relative to the user homedir and can
  164. # be set in the global section or for each virtual host.
  165. UserDir = public_html
  166. # Declaration of aliased directory names. Syntax is :
  167. # Alias = /virtualpath/ /real/path/
  168. Alias = /icons/ c:\nanoweb\www\icons\
  169. # Add server variables, this can be used to set constants for your scripts, or
  170. # to set some app specific vars like REDIRECT_STATUS for PHP.
  171. # Syntax is : AddServerVar = VARNAME VALUE
  172. #AddServerVar = REDIRECT_STATUS 200
  173. # Include virtual hosts config
  174. Include = vhosts.conf