PageRenderTime 53ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/source/core/server/conf/nanoweb.conf

https://bitbucket.org/detroitpro/taphp
Unknown | 227 lines | 180 code | 47 blank | 0 comment | 0 complexity | effdf94d269d695af7752634a2aedc27 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, GPL-3.0
  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 = 50
  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 = 64
  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 = /etc/nanoweb
  37. # Include modules configuration
  38. Include = modules.conf
  39. # Location of the nanoweb pid file (needed by start/stop script nanoctl)
  40. PidFile = /var/run/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 = logger
  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 = /etc/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 = cgi CGI $SCRIPT_FILENAME
  71. ParseExt = php CGI /usr/local/bin/php-cgi
  72. ParseExt = php3 CGI /usr/local/bin/php-cgi
  73. ParseExt = php4 CGI /usr/local/bin/php-cgi
  74. #ParseExt = asis asis
  75. #ParseExt = bsp BSP text/html
  76. #ParseExt = pl CGI /usr/bin/perl $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 = /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 = /usr/lib/nanoweb/defaultroot/
  107. AllowSymlinkTo = /usr/lib/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 = /dev/tty9 default+hit
  143. #ServerLog = /var/log/nanoweb/server.all all
  144. #ServerLog = /var/log/nanoweb/server.debug debug
  145. #ServerLog = /var/log/nanoweb/server.blocking blocking
  146. ServerLog = /var/log/nanoweb/server.log default
  147. ServerLog = /var/log/nanoweb/server.error warning+error
  148. # Default user and group nanoweb will run as.
  149. User = www-data
  150. Group = www-data
  151. # Logger Process support. If enabled, nanoweb will spawn logger processes at
  152. # launch and all logging will be done by them. This can help if you are using
  153. # User or Group directives or simply want more performance from the server.
  154. # Set to the number of loggers you want, or 0 to disable.
  155. LoggerProcess = 2
  156. # User and group the nanoweb loggers will run as
  157. #LoggerUser = www-data
  158. #LoggerGroup = www-data
  159. # LogDir let you specify the directory where nanoweb will write its log files
  160. LogDir = /var/log/nanoweb
  161. # Default site configuration
  162. DocumentRoot = /var/www/localhost
  163. DirectoryIndex = index.php index.html
  164. #DirectoryIndex = index.html /var/www/browse-dir.php
  165. Log = access.log
  166. # User directory, this is where nanoweb will look when parsing an URL like
  167. # http://webserver/~user. This path is relative to the user homedir and can
  168. # be set in the global section or for each virtual host.
  169. UserDir = public_html
  170. # Declaration of aliased directory names. Syntax is :
  171. # Alias = /virtualpath/ /real/path/
  172. #Alias = /doc/ /usr/share/doc/
  173. Alias = /doc/nanoweb/ /usr/share/doc/nanoweb/
  174. Alias = /icons/ /usr/lib/nanoweb/icons/
  175. # Add server variables, this can be used to set constants for your scripts, or
  176. # to set some app specific vars like REDIRECT_STATUS for PHP.
  177. # Syntax is : AddServerVar = VARNAME VALUE
  178. #AddServerVar = REDIRECT_STATUS 200
  179. # Include virtual hosts config
  180. Include = vhosts.conf