# # PLAIN TEXT CONFIGURATION FILE # serverName lscp user nobody group nobody priority 0 inMemBufSize 60M swappingDir /tmp/lshttpd/swap autoFix503 1 gracefulRestartTimeout 300 mime $SERVER_ROOT/conf/mime.properties showVersionNumber 0 adminEmails root@localhost adminRoot $SERVER_ROOT/admin/ errorlog $SERVER_ROOT/logs/error.log { logLevel DEBUG debugLevel 0 rollingSize 10M enableStderrLog 1 } accesslog $SERVER_ROOT/logs/access.log { rollingSize 10M keepDays 30 compressArchive 0 } indexFiles index.html, index.php expires { enableExpires 1 expiresByType image/*=A604800, text/css=A604800, application/x-javascript=A604800 } tuning { eventDispatcher best maxConnections 2000 maxSSLConnections 1000 connTimeout 300 maxKeepAliveReq 1000 smartKeepAlive 0 keepAliveTimeout 5 sndBufSize 0 rcvBufSize 0 maxReqURLLen 8192 maxReqHeaderSize 16380 maxReqBodySize 2047M maxDynRespHeaderSize 8192 maxDynRespSize 2047M maxCachedFileSize 4096 totalInMemCacheSize 20M maxMMapFileSize 256K totalMMapCacheSize 40M useSendfile 1 fileETag 28 enableGzipCompress 1 enableDynGzipCompress 1 gzipCompressLevel 6 compressibleTypes text/*,application/x-javascript,application/javascript,application/xml, image/svg+xml gzipAutoUpdateStatic 1 gzipStaticCompressLevel 6 gzipMaxFileSize 1M gzipMinFileSize 300 SSLCryptoDevice null } fileAccessControl { followSymbolLink 1 checkSymbolLink 0 requiredPermissionMask 000 restrictedPermissionMask 000 } perClientConnLimit { staticReqPerSec 0 dynReqPerSec 0 outBandwidth 0 inBandwidth 0 softLimit 10000 hardLimit 10000 gracePeriod 15 banPeriod 300 } CGIRLimit { maxCGIInstances 20 minUID 11 minGID 10 priority 0 CPUSoftLimit 10 CPUHardLimit 50 memSoftLimit 460M memHardLimit 470M procSoftLimit 400 procHardLimit 450 } accessDenyDir { dir / dir /etc/* dir /dev/* dir $SERVER_ROOT/conf/* dir $SERVER_ROOT/admin/conf/* } accessControl { allow ALL } scripthandler { add lsapi:php70 php } railsDefaults { maxConns 5 env LSAPI_MAX_REQS=1000 env LSAPI_MAX_IDLE=60 initTimeout 60 retryTimeout 0 pcKeepAliveTimeout 60 respBuffer 0 backlog 50 runOnStartUp 1 extMaxIdleTime 300 priority 3 memSoftLimit 2047M memHardLimit 2047M procSoftLimit 500 procHardLimit 600 } module cache { param <<