mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-26 07:46:35 +01:00
100 lines
1.6 KiB
Plaintext
100 lines
1.6 KiB
Plaintext
docRoot $VH_ROOT/html/
|
|
enableGzip 1
|
|
|
|
|
|
context / {
|
|
allowBrowse 1
|
|
location $DOC_ROOT/
|
|
rewrite {
|
|
RewriteFile .htaccess
|
|
}
|
|
}
|
|
|
|
expires {
|
|
enableExpires 1
|
|
}
|
|
|
|
index {
|
|
indexFiles index.php
|
|
autoIndex 0
|
|
useServer 0
|
|
}
|
|
|
|
errorPage 404{
|
|
url /error404.html
|
|
}
|
|
|
|
errorlog $VH_ROOT/logs/error.log{
|
|
logLevel DEBUG
|
|
rollingSize 10M
|
|
useServer 1
|
|
}
|
|
|
|
accessLog $VH_ROOT/logs/access.log{
|
|
compressArchive 0
|
|
logReferer 1
|
|
keepDays 30
|
|
rollingSize 10M
|
|
logUserAgent 1
|
|
useServer 0
|
|
}
|
|
|
|
rewrite {
|
|
enable 1
|
|
logLevel 0
|
|
}
|
|
|
|
hotlinkCtrl {
|
|
suffixes gif, jpeg, jpg
|
|
allowedHosts
|
|
allowDirectAccess 1
|
|
enableHotlinkCtrl 0
|
|
onlySelf 1
|
|
}
|
|
|
|
accessControl {
|
|
deny
|
|
allow *
|
|
}
|
|
|
|
realm SampleProtectedArea {
|
|
userDB {
|
|
cacheTimeout 60
|
|
maxCacheSize 200
|
|
location conf/vhosts/$VH_NAME/htpasswd
|
|
}
|
|
|
|
groupDB {
|
|
cacheTimeout 60
|
|
maxCacheSize 200
|
|
location conf/vhosts/$VH_NAME/htgroup
|
|
}
|
|
}
|
|
|
|
general {
|
|
enableContextAC 0
|
|
}
|
|
|
|
scripthandler {
|
|
add lsapi:cyberpanel php
|
|
}
|
|
|
|
extprocessor cyberpanel {
|
|
type lsapi
|
|
address UDS://tmp/lshttpd/cyberpanel.sock
|
|
maxConns 10
|
|
env LSAPI_CHILDREN=10
|
|
initTimeout 600
|
|
retryTimeout 0
|
|
persistConn 1
|
|
pcKeepAliveTimeout 1
|
|
respBuffer 0
|
|
autoStart 1
|
|
path /usr/local/lsws/lsphp82/bin/lsphp
|
|
# extUser nobody
|
|
# extGroup nobody
|
|
memSoftLimit 2047M
|
|
memHardLimit 2047M
|
|
procSoftLimit 400
|
|
procHardLimit 500
|
|
} |