Advertisement
dhanamerdeka

conf OLS

Feb 1st, 2021
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.77 KB | None | 0 0
  1. #
  2. # PLAIN TEXT CONFIGURATION FILE
  3. #
  4.  
  5. #It not set, will use host name as serverName
  6. serverName
  7. user www
  8. group www
  9. priority 0
  10. autoRestart 1
  11. chrootPath /
  12. enableChroot 0
  13. inMemBufSize 60M
  14. swappingDir /tmp/lshttpd/swap
  15. autoFix503 1
  16. gracefulRestartTimeout 300
  17. mime conf/mime.properties
  18. showVersionNumber 0
  19. adminEmails root@localhost
  20. indexFiles index.html, index.php
  21. disableWebAdmin 0
  22.  
  23. errorlog logs/error.log {
  24. logLevel DEBUG
  25. debugLevel 0
  26. rollingSize 10M
  27. enableStderrLog 1
  28. }
  29.  
  30. accessLog logs/access.log {
  31. rollingSize 10M
  32. keepDays 30
  33. compressArchive 0
  34. logReferer 1
  35. logUserAgent 1
  36. }
  37.  
  38. expires {
  39. enableExpires 1
  40. expiresByType image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800
  41. }
  42.  
  43. tuning{
  44. maxConnections 10000
  45. maxSSLConnections 10000
  46. connTimeout 300
  47. maxKeepAliveReq 10000
  48. smartKeepAlive 0
  49. keepAliveTimeout 5
  50. sndBufSize 0
  51. rcvBufSize 0
  52. gzipStaticCompressLevel 6
  53. gzipMaxFileSize 10M
  54. eventDispatcher best
  55. maxCachedFileSize 4096
  56. totalInMemCacheSize 20M
  57. maxMMapFileSize 256K
  58. totalMMapCacheSize 40M
  59. useSendfile 1
  60. fileETag 28
  61. SSLCryptoDevice null
  62. maxReqURLLen 32768
  63. maxReqHeaderSize 65536
  64. maxReqBodySize 2047M
  65. maxDynRespHeaderSize 32768
  66. maxDynRespSize 2047M
  67. enableGzipCompress 1
  68. enableBrCompress 4
  69. enableDynGzipCompress 1
  70. gzipCompressLevel 6
  71. brStaticCompressLevel 6
  72. compressibleTypes default
  73. gzipAutoUpdateStatic 1
  74. gzipMinFileSize 300
  75.  
  76. quicEnable 1
  77. quicShmDir /dev/shm
  78.  
  79. }
  80.  
  81. accessDenyDir{
  82. dir /
  83. dir /etc/*
  84. dir /dev/*
  85. dir conf/*
  86. dir admin/conf/*
  87. }
  88.  
  89. fileAccessControl{
  90. followSymbolLink 1
  91. checkSymbolLink 0
  92. requiredPermissionMask 000
  93. restrictedPermissionMask 000
  94. }
  95.  
  96. perClientConnLimit{
  97. staticReqPerSec 40
  98. dynReqPerSec 2
  99. outBandwidth 0
  100. inBandwidth 0
  101. softLimit 2
  102. hardLimit 5
  103. gracePeriod 15
  104. banPeriod 60
  105. }
  106.  
  107. CGIRLimit{
  108. maxCGIInstances 20
  109. minUID 11
  110. minGID 10
  111. priority 0
  112. CPUSoftLimit 10
  113. CPUHardLimit 50
  114. memSoftLimit 1460M
  115. memHardLimit 1470M
  116. procSoftLimit 400
  117. procHardLimit 450
  118. }
  119.  
  120. accessControl{
  121. allow ALL
  122. deny
  123. }
  124.  
  125. extProcessor lsphp{
  126. type lsapi
  127. address uds://tmp/lshttpd/lsphp.sock
  128. maxConns 10
  129. env PHP_LSAPI_CHILDREN=10
  130. env LSAPI_AVOID_FORK=200M
  131. initTimeout 60
  132. retryTimeout 0
  133. persistConn 1
  134. pcKeepAliveTimeout
  135. respBuffer 0
  136. autoStart 1
  137. path fcgi-bin/lsphp
  138. backlog 100
  139. instances 1
  140. priority 0
  141. memSoftLimit 2047M
  142. memHardLimit 2047M
  143. procSoftLimit 1400
  144. procHardLimit 1500
  145. }
  146.  
  147. scriptHandler{
  148. add lsapi:lsphp php
  149. }
  150.  
  151. railsDefaults{
  152. binPath
  153. railsEnv 1
  154. maxConns 1
  155. env LSAPI_MAX_IDLE=60
  156. initTimeout 60
  157. retryTimeout 0
  158. pcKeepAliveTimeout 60
  159. respBuffer 0
  160. backlog 50
  161. runOnStartUp 3
  162. extMaxIdleTime 300
  163. priority 3
  164. memSoftLimit 2047M
  165. memHardLimit 2047M
  166. procSoftLimit 500
  167. procHardLimit 600
  168. }
  169.  
  170. wsgiDefaults{
  171. binPath
  172. railsEnv 1
  173. maxConns 5
  174. env LSAPI_MAX_IDLE=60
  175. initTimeout 60
  176. retryTimeout 0
  177. pcKeepAliveTimeout 60
  178. respBuffer 0
  179. backlog 50
  180. runOnStartUp 3
  181. extMaxIdleTime 300
  182. priority 3
  183. memSoftLimit 2047M
  184. memHardLimit 2047M
  185. procSoftLimit 500
  186. procHardLimit 600
  187. }
  188.  
  189. nodeDefaults{
  190. binPath
  191. railsEnv 1
  192. maxConns 5
  193. env LSAPI_MAX_IDLE=60
  194. initTimeout 60
  195. retryTimeout 0
  196. pcKeepAliveTimeout 60
  197. respBuffer 0
  198. backlog 50
  199. runOnStartUp 3
  200. extMaxIdleTime 300
  201. priority 3
  202. memSoftLimit 2047M
  203. memHardLimit 2047M
  204. procSoftLimit 500
  205. procHardLimit 600
  206. }
  207.  
  208. virtualHost Example{
  209. vhRoot Example/
  210. allowSymbolLink 1
  211. enableScript 1
  212. restrained 1
  213. maxKeepAliveReq
  214. smartKeepAlive
  215. setUIDMode 0
  216. chrootMode 0
  217. configFile conf/vhosts/Example/vhconf.conf
  218. }
  219.  
  220. listener Default{
  221. address *:8188
  222. secure 0
  223. map Example *
  224. }
  225.  
  226. vhTemplate centralConfigLog{
  227. templateFile conf/templates/ccl.conf
  228. listeners Default
  229. }
  230.  
  231. vhTemplate EasyRailsWithSuEXEC{
  232. templateFile conf/templates/rails.conf
  233. listeners Default
  234. }
  235.  
  236. module cache {
  237. ls_enabled 1
  238.  
  239. checkPrivateCache 1
  240. checkPublicCache 1
  241. maxCacheObjSize 10000000
  242. maxStaleAge 200
  243. qsCache 1
  244. reqCookieCache 1
  245. respCookieCache 1
  246. ignoreReqCacheCtrl 1
  247. ignoreRespCacheCtrl 0
  248.  
  249. enableCache 0
  250. expireInSeconds 3600
  251. enablePrivateCache 0
  252. privateExpireInSeconds 3600
  253.  
  254. }
  255.  
  256. include /www/server/panel/vhost/openlitespeed/*.conf
  257. include /www/server/panel/vhost/openlitespeed/listen/*.conf
  258.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement