Created
February 25, 2020 04:25
-
-
Save TrurlMcByte/8f6d8ef1e0283c4738d6a40f51908263 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# PLAIN TEXT CONFIGURATION FILE | |
# | |
#It not set, will use host name as serverName | |
serverName $HOSTNAME | |
httpdWorkers 1 | |
user lsadm | |
group lsadm | |
priority 0 | |
inMemBufSize 60M | |
swappingDir /tmp/lshttpd/swap | |
autoFix503 0 | |
gracefulRestartTimeout 300 | |
mime $SERVER_ROOT/conf/mime.properties | |
showVersionNumber 0 | |
enableIpGeo 1 | |
useIpInProxyHeader 1 | |
adminEmails root@localhost | |
adminRoot $SERVER_ROOT/admin/ | |
errorlog /var/lib/litespeed/logs/error.log { | |
logLevel ERROR | |
debugLevel 0 | |
rollingSize 0 | |
enableStderrLog 1 | |
} | |
accesslog /var/lib/litespeed/logs/access.log { | |
logHeaders 4 | |
rollingSize 0 | |
keepDays 2 | |
compressArchive 0 | |
} | |
indexFiles index.html, index.php | |
expires { | |
enableExpires 1 | |
expiresByType image/*=A604800, text/css=A604800, application/x-javascript=A604800 | |
} | |
geoipdb $SERVER_ROOT/conf/GeoIP/GeoIP.dat { | |
geoipDBCache MemoryCache | |
} | |
tuning { | |
eventDispatcher best | |
maxConnections 2000 | |
maxSSLConnections 1000 | |
connTimeout 300 | |
maxKeepAliveReq 1000 | |
smartKeepAlive 1 | |
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 24 | |
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 1 | |
forceStrictOwnership 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 0 | |
# minGID 0 | |
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 | |
} | |
extprocessor lsphp { | |
type lsapi | |
address uds://tmp/lshttpd/lsphp.sock | |
maxConns 12 | |
env PHP_LSAPI_MAX_REQUESTS=1500 | |
env PHP_LSAPI_CHILDREN=12 | |
env TEST="jopa" | |
env ENV="home" | |
initTimeout 60 | |
retryTimeout 0 | |
persistConn 1 | |
respBuffer 0 | |
autoStart 1 | |
path $SERVER_ROOT/fcgi-bin/lsphp | |
backlog 100 | |
instances 1 | |
extUser www-data | |
extGroup www-data | |
runOnStartUp 1 | |
priority 0 | |
memSoftLimit 1700M | |
memHardLimit 1800M | |
procSoftLimit 50 | |
procHardLimit 60 | |
} | |
scripthandler { | |
add lsapi:lsphp 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 { | |
storagepath /var/lib/litespeed/cachedata/cache | |
enableCache 0 | |
enablePrivateCache 0 | |
checkPublicCache 1 | |
checkPrivateCache 1 | |
qsCache 1 | |
reqCookieCache 1 | |
ignoreReqCacheCtrl 1 | |
ignoreRespCacheCtrl 0 | |
respCookieCache 1 | |
expireInSeconds 3600 | |
privateExpireInSeconds 3600 | |
maxStaleAge 200 | |
maxCacheObjSize 10000000 | |
noCacheDomain | |
noCacheUrl | |
no-vary 0 | |
addEtag 1 | |
} | |
virtualhost drupal6 { | |
vhRoot $SERVER_ROOT/conf/vhosts/$VH_NAME | |
configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf | |
allowSymbolLink 1 | |
enableScript 1 | |
restrained 0 | |
maxKeepAliveReq 100 | |
smartKeepAlive 1 | |
} | |
listener default { | |
address *:8088 | |
secure 0 | |
map drupal6 * | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment