parent
277a216f71
commit
be823d37cc
@ -1 +1,2 @@
|
|||||||
data
|
data
|
||||||
|
latest.yml
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
docker-compose exec litespeed su -s /bin/bash lsadm -c 'echo "admin:$(/usr/local/lsws/admin/fcgi-bin/admin_php* -q /usr/local/lsws/admin/misc/htpasswd.php '${1}')" > /usr/local/lsws/admin/conf/htpasswd';
|
||||||
|
|
@ -0,0 +1,28 @@
|
|||||||
|
enableCoreDump 1
|
||||||
|
sessionTimeout 3600
|
||||||
|
|
||||||
|
errorlog $SERVER_ROOT/admin/logs/error.log {
|
||||||
|
useServer 0
|
||||||
|
logLevel INFO
|
||||||
|
rollingSize 10M
|
||||||
|
}
|
||||||
|
|
||||||
|
accessLog $SERVER_ROOT/admin/logs/access.log {
|
||||||
|
useServer 0
|
||||||
|
rollingSize 10M
|
||||||
|
keepDays 90
|
||||||
|
logReferer 1
|
||||||
|
logUserAgent 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow ALL
|
||||||
|
}
|
||||||
|
|
||||||
|
listener adminListener{
|
||||||
|
address *:7080
|
||||||
|
secure 1
|
||||||
|
keyFile $SERVER_ROOT/admin/conf/webadmin.key
|
||||||
|
certFile $SERVER_ROOT/admin/conf/webadmin.crt
|
||||||
|
clientVerify 0
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
enableCoreDump 1
|
||||||
|
sessionTimeout 3600
|
||||||
|
|
||||||
|
errorlog $SERVER_ROOT/admin/logs/error.log {
|
||||||
|
useServer 0
|
||||||
|
logLevel INFO
|
||||||
|
rollingSize 10M
|
||||||
|
}
|
||||||
|
|
||||||
|
accessLog $SERVER_ROOT/admin/logs/access.log {
|
||||||
|
useServer 0
|
||||||
|
rollingSize 10M
|
||||||
|
keepDays 90
|
||||||
|
logReferer 1
|
||||||
|
logUserAgent 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow ALL
|
||||||
|
}
|
||||||
|
|
||||||
|
listener adminListener{
|
||||||
|
address *:7080
|
||||||
|
secure 1
|
||||||
|
keyFile $SERVER_ROOT/admin/conf/webadmin.key
|
||||||
|
certFile $SERVER_ROOT/admin/conf/webadmin.crt
|
||||||
|
clientVerify 0
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
admin:$1$RaqgGtmd$81EhmoqpWhiJJtCDRp0FX/
|
@ -0,0 +1 @@
|
|||||||
|
a:4:{s:5:"e_hex";s:5:"10001";s:5:"n_hex";s:128:"b7bb4f3cc625b0eeac732dd8a390b85abcf8e431e5fdcceff9263fde708a5c7987cd7d688049505c0d093f04578a5c42682a42059b716379395cd70fc1607305";s:5:"d_int";s:154:"6703825019665916493952926277112537602724741832858064679940864979484386878393952384373680267948475998523919847151974076664649456074859804518970261355949869";s:5:"n_int";s:154:"9622808776613556941196156765077082963615029579254418488496494911195835531228802340733537655491185073667122493828575044373162008340396816107834354845119237";}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIDczCCAlsCFGdb2/AErEwza/LlvbsHa2N8n6NZMA0GCSqGSIb3DQEBCwUAMHYx
|
||||||
|
CzAJBgNVBAYTAlVTMRMwEQYDVQQIDApOZXcgSmVyc2V5MRAwDgYDVQQHDAdWaXJ0
|
||||||
|
dWFsMRswGQYDVQQKDBJMaXRlU3BlZWRDb21tdW5pdHkxEDAOBgNVBAsMB1Rlc3Rp
|
||||||
|
bmcxETAPBgNVBAMMCHdlYmFkbWluMB4XDTIwMDEwNjExMDQ0OVoXDTIyMTAwMjEx
|
||||||
|
MDQ0OVowdjELMAkGA1UEBhMCVVMxEzARBgNVBAgMCk5ldyBKZXJzZXkxEDAOBgNV
|
||||||
|
BAcMB1ZpcnR1YWwxGzAZBgNVBAoMEkxpdGVTcGVlZENvbW11bml0eTEQMA4GA1UE
|
||||||
|
CwwHVGVzdGluZzERMA8GA1UEAwwId2ViYWRtaW4wggEiMA0GCSqGSIb3DQEBAQUA
|
||||||
|
A4IBDwAwggEKAoIBAQC32vTgc+Xzgj/QafxWr4N4d9qqeEXsJ9QGyIti4Ws08UTp
|
||||||
|
1R9YSNOujEZRecl5pvA8cFAhH2XCOVoBQ/IqOxzo0Vw6TnrKvnfGzHD7bqQdn1H6
|
||||||
|
QDtSxALwh1KoQQd+iRdZGSa1DEpHHS/S5qp87X+oslYLNU4C/uSrRgmq/11fEXcd
|
||||||
|
l7z3SVp8duS+AlJ1yviB7zU0KQm3UxKSIOO0jUDqrfBDz128WjnFnrvpUyDxfsJ+
|
||||||
|
95cvk/fPEHYNZoF390AclR9EQ1h14kIIVKd5hXClerCBV8ho1b/YI8gX4SQvcv7X
|
||||||
|
6kNL1uN9FUOW/MoFUeDLvAGw0NZNeTA9lYU4XKyJAgMBAAEwDQYJKoZIhvcNAQEL
|
||||||
|
BQADggEBAClGWPhigFsELv3IvWk/ibEdSsconD+zlp3RlPvNrOSgHc4LY29668Y7
|
||||||
|
9hzXB/2Ghl1oY9tygZXdJf0pJmYE4UbE1xTaF3CXFtd87wQb3ygrbcOutgC4mkEn
|
||||||
|
paDNWBAD5NSUyUqFW0R4+Vcdc/n0bE41jz4CEY0hIoKOscZPeZKGIo751oJ/QZUb
|
||||||
|
omAYVLWReahiKI+cVzNKnz96k/95b9kYBJV4xsBaJg/UTOwCeWII3lylF4X8ipoP
|
||||||
|
3F2NPJFso78BdmzxL5EVTi6mBbsKZk5tPP6jv4ihNjh2ZNnzbJd+49dSNgnMUIYY
|
||||||
|
Yg2oimvaSuP8ktnG8/ItHPMEbxa1LSo=
|
||||||
|
-----END CERTIFICATE-----
|
@ -0,0 +1,27 @@
|
|||||||
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
MIIEowIBAAKCAQEAt9r04HPl84I/0Gn8Vq+DeHfaqnhF7CfUBsiLYuFrNPFE6dUf
|
||||||
|
WEjTroxGUXnJeabwPHBQIR9lwjlaAUPyKjsc6NFcOk56yr53xsxw+26kHZ9R+kA7
|
||||||
|
UsQC8IdSqEEHfokXWRkmtQxKRx0v0uaqfO1/qLJWCzVOAv7kq0YJqv9dXxF3HZe8
|
||||||
|
90lafHbkvgJSdcr4ge81NCkJt1MSkiDjtI1A6q3wQ89dvFo5xZ676VMg8X7CfveX
|
||||||
|
L5P3zxB2DWaBd/dAHJUfRENYdeJCCFSneYVwpXqwgVfIaNW/2CPIF+EkL3L+1+pD
|
||||||
|
S9bjfRVDlvzKBVHgy7wBsNDWTXkwPZWFOFysiQIDAQABAoIBAEz5QLiQDWAL0gfB
|
||||||
|
t8HbLaHMHCJuxGeArUZBxAmb8rRxprZ3Ye4mX2melPobkPx7pezH4ORdLs9ID6Sj
|
||||||
|
+8kugoX+0SwgG0yyvZbflRXPVqqIP1wUdEHMiqaFIVgMEcUqRDorS4dVI+vuDk2w
|
||||||
|
AQTYsi/AqkF7CbQ7XyVN51JOI5tfENG9XpdHeVZYjkvC/yCZPZxSBN4c+HnRx/1J
|
||||||
|
tkaSz/nQ5v+H7JUYd/rD7i2E0tjsrj9LE6hYnqNiCxyGiSO+2DR+ljBubm/4P/K7
|
||||||
|
1GjK5viiCIYFCxUBE+WeemggMfh6qT/QgYhe3+B5bb9t5ia4iM99gOdTK1AmctIc
|
||||||
|
xm3OPLkCgYEA3zfpDy84X2tPeeUyLRHVpXuDF3zkg7o+U6L3Fdp8GsDxB3wSSp4x
|
||||||
|
p/6pXbUIjEoCNWnmTyv1PBICMvkzoZXkZ+gW1QFaa0GuOUMhzck9FrDv0Oib5zOF
|
||||||
|
A1fJRJexJ967VLbzzv0u8hfZ9pZ4WPhP8IZHgBetO1ans/FpYPc1wlMCgYEA0tsn
|
||||||
|
/G2s6zBWFKb6ZzpEkox2Xj3nJFnNKrl7BIFKPovO2lVJYUt0rLFB505oBeygjfDf
|
||||||
|
d91KEAbeiwvS1VZiE5HJhZdqlqwuqS7uAIPIyseLEWG1eA6rIwhwdThSOezXhSiK
|
||||||
|
gseIiRJxTS48/tNcEmtZ5J7UbIZuCTbsE2+qcjMCgYAHE+DB6H9jFyX3+Xpzz2L0
|
||||||
|
0ku/zOf5/UfIoxwuhzT0LDX4RMjXsNhmOT7ph7nzqM0VIHx6+ivWccO8Fga7EuOh
|
||||||
|
H8zJiDdzuytpCWXi/oR/WbDg8N8wn4OSLZBmKmEloHxUHVDxuTlp17PDi9XZDFaM
|
||||||
|
i9VsjFOj1AWRQRBUUMJVnQKBgQCJjUBjkySn9MtjA578sm1DcPBTAG0GMLL/+SoA
|
||||||
|
QVuuu8PAeLy7BN9jPOtyOprvqnL+xbDyX+DN3b1V1eu/EnA+te9R//ofuslhwuSu
|
||||||
|
X0ogxtW5DBW28VLBMuMyBQDXGuNp0Y2yTPqL+QUCxXQzBKzesztcQiTvey7TQgn1
|
||||||
|
j/YQMwKBgAi8ryLDsEVGI1EJZAylwq8vPCyDIzVU7z2TXcUwU25PatIlAUqN9P1J
|
||||||
|
xVHI266xaNqtyua3kIo0/F1WeyARBWy3CywQcnC5i67Lwj249oQ5CZKw2damEVm0
|
||||||
|
kxx9uv7nXc2d7N+KOTA0gYfzhThFl5QK6zz+2PdD2mKcUqBXOapi
|
||||||
|
-----END RSA PRIVATE KEY-----
|
@ -0,0 +1,248 @@
|
|||||||
|
#
|
||||||
|
# PLAIN TEXT CONFIGURATION FILE
|
||||||
|
#
|
||||||
|
#It not set, will use host name as serverName
|
||||||
|
serverName
|
||||||
|
user nobody
|
||||||
|
group nogroup
|
||||||
|
priority 0
|
||||||
|
inMemBufSize 60M
|
||||||
|
swappingDir /tmp/lshttpd/swap
|
||||||
|
autoFix503 1
|
||||||
|
gracefulRestartTimeout 300
|
||||||
|
mime conf/mime.properties
|
||||||
|
showVersionNumber 0
|
||||||
|
adminEmails root@localhost
|
||||||
|
|
||||||
|
errorlog logs/error.log {
|
||||||
|
logLevel DEBUG
|
||||||
|
debugLevel 0
|
||||||
|
rollingSize 10M
|
||||||
|
enableStderrLog 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accesslog 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,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800
|
||||||
|
}
|
||||||
|
|
||||||
|
tuning {
|
||||||
|
maxConnections 10000
|
||||||
|
maxSSLConnections 10000
|
||||||
|
connTimeout 300
|
||||||
|
maxKeepAliveReq 10000
|
||||||
|
smartKeepAlive 0
|
||||||
|
keepAliveTimeout 5
|
||||||
|
sndBufSize 0
|
||||||
|
rcvBufSize 0
|
||||||
|
maxReqURLLen 32768
|
||||||
|
maxReqHeaderSize 65536
|
||||||
|
maxReqBodySize 2047M
|
||||||
|
maxDynRespHeaderSize 32768
|
||||||
|
maxDynRespSize 2047M
|
||||||
|
maxCachedFileSize 4096
|
||||||
|
totalInMemCacheSize 20M
|
||||||
|
maxMMapFileSize 256K
|
||||||
|
totalMMapCacheSize 40M
|
||||||
|
useSendfile 1
|
||||||
|
fileETag 28
|
||||||
|
enableGzipCompress 1
|
||||||
|
compressibleTypes text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml,application/rss+xml
|
||||||
|
enableDynGzipCompress 1
|
||||||
|
gzipCompressLevel 6
|
||||||
|
gzipAutoUpdateStatic 1
|
||||||
|
gzipStaticCompressLevel 6
|
||||||
|
brStaticCompressLevel 6
|
||||||
|
gzipMaxFileSize 10M
|
||||||
|
gzipMinFileSize 300
|
||||||
|
|
||||||
|
quicEnable 1
|
||||||
|
quicShmDir /dev/shm
|
||||||
|
}
|
||||||
|
|
||||||
|
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 1460M
|
||||||
|
memHardLimit 1470M
|
||||||
|
procSoftLimit 400
|
||||||
|
procHardLimit 450
|
||||||
|
}
|
||||||
|
|
||||||
|
accessDenyDir {
|
||||||
|
dir /
|
||||||
|
dir /etc/*
|
||||||
|
dir /dev/*
|
||||||
|
dir conf/*
|
||||||
|
dir admin/conf/*
|
||||||
|
}
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow ALL
|
||||||
|
}
|
||||||
|
|
||||||
|
extprocessor lsphp {
|
||||||
|
type lsapi
|
||||||
|
address uds://tmp/lshttpd/lsphp.sock
|
||||||
|
maxConns 10
|
||||||
|
env PHP_LSAPI_CHILDREN=10
|
||||||
|
env LSAPI_AVOID_FORK=200M
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
persistConn 1
|
||||||
|
respBuffer 0
|
||||||
|
autoStart 1
|
||||||
|
path fcgi-bin/lsphp
|
||||||
|
backlog 100
|
||||||
|
instances 1
|
||||||
|
priority 0
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 1400
|
||||||
|
procHardLimit 1500
|
||||||
|
}
|
||||||
|
|
||||||
|
scripthandler {
|
||||||
|
add lsapi:lsphp php
|
||||||
|
}
|
||||||
|
|
||||||
|
railsDefaults {
|
||||||
|
maxConns 1
|
||||||
|
env LSAPI_MAX_IDLE=60
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
pcKeepAliveTimeout 60
|
||||||
|
respBuffer 0
|
||||||
|
backlog 50
|
||||||
|
runOnStartUp 3
|
||||||
|
extMaxIdleTime 300
|
||||||
|
priority 3
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 500
|
||||||
|
procHardLimit 600
|
||||||
|
}
|
||||||
|
|
||||||
|
wsgiDefaults {
|
||||||
|
maxConns 5
|
||||||
|
env LSAPI_MAX_IDLE=60
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
pcKeepAliveTimeout 60
|
||||||
|
respBuffer 0
|
||||||
|
backlog 50
|
||||||
|
runOnStartUp 3
|
||||||
|
extMaxIdleTime 300
|
||||||
|
priority 3
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 500
|
||||||
|
procHardLimit 600
|
||||||
|
}
|
||||||
|
|
||||||
|
nodeDefaults {
|
||||||
|
maxConns 5
|
||||||
|
env LSAPI_MAX_IDLE=60
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
pcKeepAliveTimeout 60
|
||||||
|
respBuffer 0
|
||||||
|
backlog 50
|
||||||
|
runOnStartUp 3
|
||||||
|
extMaxIdleTime 300
|
||||||
|
priority 3
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 500
|
||||||
|
procHardLimit 600
|
||||||
|
}
|
||||||
|
|
||||||
|
module cache {
|
||||||
|
|
||||||
|
checkPrivateCache 1
|
||||||
|
checkPublicCache 1
|
||||||
|
maxCacheObjSize 10000000
|
||||||
|
maxStaleAge 200
|
||||||
|
qsCache 1
|
||||||
|
reqCookieCache 1
|
||||||
|
respCookieCache 1
|
||||||
|
ignoreReqCacheCtrl 1
|
||||||
|
ignoreRespCacheCtrl 0
|
||||||
|
|
||||||
|
enableCache 0
|
||||||
|
expireInSeconds 3600
|
||||||
|
enablePrivateCache 0
|
||||||
|
privateExpireInSeconds 3600
|
||||||
|
ls_enabled 1
|
||||||
|
}
|
||||||
|
|
||||||
|
virtualhost Example {
|
||||||
|
vhRoot Example/
|
||||||
|
configFile conf/vhosts/Example/vhconf.conf
|
||||||
|
allowSymbolLink 1
|
||||||
|
enableScript 1
|
||||||
|
restrained 1
|
||||||
|
setUIDMode 0
|
||||||
|
}
|
||||||
|
|
||||||
|
listener Default {
|
||||||
|
address *:8088
|
||||||
|
secure 0
|
||||||
|
map Example *
|
||||||
|
}
|
||||||
|
|
||||||
|
listener HTTP {
|
||||||
|
address *:80
|
||||||
|
secure 0
|
||||||
|
}
|
||||||
|
|
||||||
|
listener HTTPS {
|
||||||
|
address *:443
|
||||||
|
secure 1
|
||||||
|
keyFile /usr/local/lsws/admin/conf/webadmin.key
|
||||||
|
certFile /usr/local/lsws/admin/conf/webadmin.crt
|
||||||
|
}
|
||||||
|
|
||||||
|
vhTemplate centralConfigLog {
|
||||||
|
templateFile conf/templates/ccl.conf
|
||||||
|
listeners Default, HTTP, HTTPS
|
||||||
|
member localhost {
|
||||||
|
vhDomain localhost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vhTemplate EasyRailsWithSuEXEC {
|
||||||
|
templateFile conf/templates/rails.conf
|
||||||
|
listeners Default
|
||||||
|
}
|
||||||
|
|
||||||
|
#include /usr/local/lsws/conf/sites.conf
|
@ -0,0 +1,251 @@
|
|||||||
|
#
|
||||||
|
# PLAIN TEXT CONFIGURATION FILE
|
||||||
|
#
|
||||||
|
#It not set, will use host name as serverName
|
||||||
|
serverName
|
||||||
|
user nobody
|
||||||
|
group nogroup
|
||||||
|
priority 0
|
||||||
|
inMemBufSize 60M
|
||||||
|
swappingDir /tmp/lshttpd/swap
|
||||||
|
autoFix503 1
|
||||||
|
gracefulRestartTimeout 300
|
||||||
|
mime conf/mime.properties
|
||||||
|
showVersionNumber 0
|
||||||
|
adminEmails root@localhost
|
||||||
|
|
||||||
|
errorlog logs/error.log {
|
||||||
|
logLevel DEBUG
|
||||||
|
debugLevel 0
|
||||||
|
rollingSize 10M
|
||||||
|
enableStderrLog 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accesslog 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,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800
|
||||||
|
}
|
||||||
|
|
||||||
|
tuning {
|
||||||
|
maxConnections 10000
|
||||||
|
maxSSLConnections 10000
|
||||||
|
connTimeout 300
|
||||||
|
maxKeepAliveReq 10000
|
||||||
|
smartKeepAlive 0
|
||||||
|
keepAliveTimeout 5
|
||||||
|
sndBufSize 0
|
||||||
|
rcvBufSize 0
|
||||||
|
maxReqURLLen 32768
|
||||||
|
maxReqHeaderSize 65536
|
||||||
|
maxReqBodySize 2047M
|
||||||
|
maxDynRespHeaderSize 32768
|
||||||
|
maxDynRespSize 2047M
|
||||||
|
maxCachedFileSize 4096
|
||||||
|
totalInMemCacheSize 20M
|
||||||
|
maxMMapFileSize 256K
|
||||||
|
totalMMapCacheSize 40M
|
||||||
|
useSendfile 1
|
||||||
|
fileETag 28
|
||||||
|
enableGzipCompress 1
|
||||||
|
compressibleTypes text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml,application/rss+xml
|
||||||
|
enableDynGzipCompress 1
|
||||||
|
gzipCompressLevel 6
|
||||||
|
gzipAutoUpdateStatic 1
|
||||||
|
gzipStaticCompressLevel 6
|
||||||
|
brStaticCompressLevel 6
|
||||||
|
gzipMaxFileSize 10M
|
||||||
|
gzipMinFileSize 300
|
||||||
|
|
||||||
|
quicEnable 1
|
||||||
|
quicShmDir /dev/shm
|
||||||
|
}
|
||||||
|
|
||||||
|
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 1460M
|
||||||
|
memHardLimit 1470M
|
||||||
|
procSoftLimit 400
|
||||||
|
procHardLimit 450
|
||||||
|
}
|
||||||
|
|
||||||
|
accessDenyDir {
|
||||||
|
dir /
|
||||||
|
dir /etc/*
|
||||||
|
dir /dev/*
|
||||||
|
dir conf/*
|
||||||
|
dir admin/conf/*
|
||||||
|
}
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow ALL
|
||||||
|
}
|
||||||
|
|
||||||
|
extprocessor lsphp {
|
||||||
|
type lsapi
|
||||||
|
address uds://tmp/lshttpd/lsphp.sock
|
||||||
|
maxConns 10
|
||||||
|
env PHP_LSAPI_CHILDREN=10
|
||||||
|
env LSAPI_AVOID_FORK=200M
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
persistConn 1
|
||||||
|
respBuffer 0
|
||||||
|
autoStart 1
|
||||||
|
path fcgi-bin/lsphp
|
||||||
|
backlog 100
|
||||||
|
instances 1
|
||||||
|
priority 0
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 1400
|
||||||
|
procHardLimit 1500
|
||||||
|
}
|
||||||
|
|
||||||
|
scripthandler {
|
||||||
|
add lsapi:lsphp php
|
||||||
|
}
|
||||||
|
|
||||||
|
railsDefaults {
|
||||||
|
maxConns 1
|
||||||
|
env LSAPI_MAX_IDLE=60
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
pcKeepAliveTimeout 60
|
||||||
|
respBuffer 0
|
||||||
|
backlog 50
|
||||||
|
runOnStartUp 3
|
||||||
|
extMaxIdleTime 300
|
||||||
|
priority 3
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 500
|
||||||
|
procHardLimit 600
|
||||||
|
}
|
||||||
|
|
||||||
|
wsgiDefaults {
|
||||||
|
maxConns 5
|
||||||
|
env LSAPI_MAX_IDLE=60
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
pcKeepAliveTimeout 60
|
||||||
|
respBuffer 0
|
||||||
|
backlog 50
|
||||||
|
runOnStartUp 3
|
||||||
|
extMaxIdleTime 300
|
||||||
|
priority 3
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 500
|
||||||
|
procHardLimit 600
|
||||||
|
}
|
||||||
|
|
||||||
|
nodeDefaults {
|
||||||
|
maxConns 5
|
||||||
|
env LSAPI_MAX_IDLE=60
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
pcKeepAliveTimeout 60
|
||||||
|
respBuffer 0
|
||||||
|
backlog 50
|
||||||
|
runOnStartUp 3
|
||||||
|
extMaxIdleTime 300
|
||||||
|
priority 3
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 500
|
||||||
|
procHardLimit 600
|
||||||
|
}
|
||||||
|
|
||||||
|
module cache {
|
||||||
|
|
||||||
|
checkPrivateCache 1
|
||||||
|
checkPublicCache 1
|
||||||
|
maxCacheObjSize 10000000
|
||||||
|
maxStaleAge 200
|
||||||
|
qsCache 1
|
||||||
|
reqCookieCache 1
|
||||||
|
respCookieCache 1
|
||||||
|
ignoreReqCacheCtrl 1
|
||||||
|
ignoreRespCacheCtrl 0
|
||||||
|
|
||||||
|
enableCache 0
|
||||||
|
expireInSeconds 3600
|
||||||
|
enablePrivateCache 0
|
||||||
|
privateExpireInSeconds 3600
|
||||||
|
ls_enabled 1
|
||||||
|
}
|
||||||
|
|
||||||
|
virtualhost Example {
|
||||||
|
vhRoot Example/
|
||||||
|
configFile conf/vhosts/Example/vhconf.conf
|
||||||
|
allowSymbolLink 1
|
||||||
|
enableScript 1
|
||||||
|
restrained 1
|
||||||
|
setUIDMode 0
|
||||||
|
}
|
||||||
|
|
||||||
|
listener Default {
|
||||||
|
address *:8088
|
||||||
|
secure 0
|
||||||
|
map Example *
|
||||||
|
}
|
||||||
|
|
||||||
|
listener HTTP {
|
||||||
|
address *:80
|
||||||
|
secure 0
|
||||||
|
}
|
||||||
|
|
||||||
|
vhTemplate centralConfigLog {
|
||||||
|
templateFile conf/templates/ccl.conf
|
||||||
|
listeners Default, HTTP
|
||||||
|
note test test
|
||||||
|
|
||||||
|
member example2.com {
|
||||||
|
vhDomain example2.com
|
||||||
|
}
|
||||||
|
|
||||||
|
member example6.com {
|
||||||
|
vhDomain example6.com
|
||||||
|
}
|
||||||
|
|
||||||
|
member localhost {
|
||||||
|
vhDomain localhost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vhTemplate EasyRailsWithSuEXEC {
|
||||||
|
templateFile conf/templates/rails.conf
|
||||||
|
listeners Default
|
||||||
|
}
|
||||||
|
|
||||||
|
#include /usr/local/lsws/conf/sites.conf
|
@ -0,0 +1,257 @@
|
|||||||
|
#
|
||||||
|
# PLAIN TEXT CONFIGURATION FILE
|
||||||
|
#
|
||||||
|
#It not set, will use host name as serverName
|
||||||
|
serverName
|
||||||
|
user nobody
|
||||||
|
group nogroup
|
||||||
|
priority 0
|
||||||
|
inMemBufSize 60M
|
||||||
|
swappingDir /tmp/lshttpd/swap
|
||||||
|
autoFix503 1
|
||||||
|
gracefulRestartTimeout 300
|
||||||
|
mime conf/mime.properties
|
||||||
|
showVersionNumber 0
|
||||||
|
adminEmails root@localhost
|
||||||
|
|
||||||
|
errorlog logs/error.log {
|
||||||
|
logLevel DEBUG
|
||||||
|
debugLevel 0
|
||||||
|
rollingSize 10M
|
||||||
|
enableStderrLog 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accesslog 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,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800
|
||||||
|
}
|
||||||
|
|
||||||
|
tuning {
|
||||||
|
maxConnections 10000
|
||||||
|
maxSSLConnections 10000
|
||||||
|
connTimeout 300
|
||||||
|
maxKeepAliveReq 10000
|
||||||
|
smartKeepAlive 0
|
||||||
|
keepAliveTimeout 5
|
||||||
|
sndBufSize 0
|
||||||
|
rcvBufSize 0
|
||||||
|
maxReqURLLen 32768
|
||||||
|
maxReqHeaderSize 65536
|
||||||
|
maxReqBodySize 2047M
|
||||||
|
maxDynRespHeaderSize 32768
|
||||||
|
maxDynRespSize 2047M
|
||||||
|
maxCachedFileSize 4096
|
||||||
|
totalInMemCacheSize 20M
|
||||||
|
maxMMapFileSize 256K
|
||||||
|
totalMMapCacheSize 40M
|
||||||
|
useSendfile 1
|
||||||
|
fileETag 28
|
||||||
|
enableGzipCompress 1
|
||||||
|
compressibleTypes text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml,application/rss+xml
|
||||||
|
enableDynGzipCompress 1
|
||||||
|
gzipCompressLevel 6
|
||||||
|
gzipAutoUpdateStatic 1
|
||||||
|
gzipStaticCompressLevel 6
|
||||||
|
brStaticCompressLevel 6
|
||||||
|
gzipMaxFileSize 10M
|
||||||
|
gzipMinFileSize 300
|
||||||
|
|
||||||
|
quicEnable 1
|
||||||
|
quicShmDir /dev/shm
|
||||||
|
}
|
||||||
|
|
||||||
|
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 1460M
|
||||||
|
memHardLimit 1470M
|
||||||
|
procSoftLimit 400
|
||||||
|
procHardLimit 450
|
||||||
|
}
|
||||||
|
|
||||||
|
accessDenyDir {
|
||||||
|
dir /
|
||||||
|
dir /etc/*
|
||||||
|
dir /dev/*
|
||||||
|
dir conf/*
|
||||||
|
dir admin/conf/*
|
||||||
|
}
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow ALL
|
||||||
|
}
|
||||||
|
|
||||||
|
extprocessor lsphp {
|
||||||
|
type lsapi
|
||||||
|
address uds://tmp/lshttpd/lsphp.sock
|
||||||
|
maxConns 10
|
||||||
|
env PHP_LSAPI_CHILDREN=10
|
||||||
|
env LSAPI_AVOID_FORK=200M
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
persistConn 1
|
||||||
|
respBuffer 0
|
||||||
|
autoStart 1
|
||||||
|
path fcgi-bin/lsphp
|
||||||
|
backlog 100
|
||||||
|
instances 1
|
||||||
|
priority 0
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 1400
|
||||||
|
procHardLimit 1500
|
||||||
|
}
|
||||||
|
|
||||||
|
scripthandler {
|
||||||
|
add lsapi:lsphp php
|
||||||
|
}
|
||||||
|
|
||||||
|
railsDefaults {
|
||||||
|
maxConns 1
|
||||||
|
env LSAPI_MAX_IDLE=60
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
pcKeepAliveTimeout 60
|
||||||
|
respBuffer 0
|
||||||
|
backlog 50
|
||||||
|
runOnStartUp 3
|
||||||
|
extMaxIdleTime 300
|
||||||
|
priority 3
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 500
|
||||||
|
procHardLimit 600
|
||||||
|
}
|
||||||
|
|
||||||
|
wsgiDefaults {
|
||||||
|
maxConns 5
|
||||||
|
env LSAPI_MAX_IDLE=60
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
pcKeepAliveTimeout 60
|
||||||
|
respBuffer 0
|
||||||
|
backlog 50
|
||||||
|
runOnStartUp 3
|
||||||
|
extMaxIdleTime 300
|
||||||
|
priority 3
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 500
|
||||||
|
procHardLimit 600
|
||||||
|
}
|
||||||
|
|
||||||
|
nodeDefaults {
|
||||||
|
maxConns 5
|
||||||
|
env LSAPI_MAX_IDLE=60
|
||||||
|
initTimeout 60
|
||||||
|
retryTimeout 0
|
||||||
|
pcKeepAliveTimeout 60
|
||||||
|
respBuffer 0
|
||||||
|
backlog 50
|
||||||
|
runOnStartUp 3
|
||||||
|
extMaxIdleTime 300
|
||||||
|
priority 3
|
||||||
|
memSoftLimit 2047M
|
||||||
|
memHardLimit 2047M
|
||||||
|
procSoftLimit 500
|
||||||
|
procHardLimit 600
|
||||||
|
}
|
||||||
|
|
||||||
|
module cache {
|
||||||
|
|
||||||
|
checkPrivateCache 1
|
||||||
|
checkPublicCache 1
|
||||||
|
maxCacheObjSize 10000000
|
||||||
|
maxStaleAge 200
|
||||||
|
qsCache 1
|
||||||
|
reqCookieCache 1
|
||||||
|
respCookieCache 1
|
||||||
|
ignoreReqCacheCtrl 1
|
||||||
|
ignoreRespCacheCtrl 0
|
||||||
|
|
||||||
|
enableCache 0
|
||||||
|
expireInSeconds 3600
|
||||||
|
enablePrivateCache 0
|
||||||
|
privateExpireInSeconds 3600
|
||||||
|
ls_enabled 1
|
||||||
|
}
|
||||||
|
|
||||||
|
virtualhost Example {
|
||||||
|
vhRoot Example/
|
||||||
|
configFile conf/vhosts/Example/vhconf.conf
|
||||||
|
allowSymbolLink 1
|
||||||
|
enableScript 1
|
||||||
|
restrained 1
|
||||||
|
setUIDMode 0
|
||||||
|
}
|
||||||
|
|
||||||
|
listener Default {
|
||||||
|
address *:8088
|
||||||
|
secure 0
|
||||||
|
map Example *
|
||||||
|
}
|
||||||
|
|
||||||
|
listener HTTP {
|
||||||
|
address *:80
|
||||||
|
secure 0
|
||||||
|
}
|
||||||
|
|
||||||
|
vhTemplate centralConfigLog {
|
||||||
|
templateFile conf/templates/ccl.conf
|
||||||
|
listeners Default, HTTP
|
||||||
|
member example4.com {
|
||||||
|
vhDomain example4.com
|
||||||
|
}
|
||||||
|
member example3.com {
|
||||||
|
vhDomain example3.com
|
||||||
|
}
|
||||||
|
note test test
|
||||||
|
|
||||||
|
member example2.com {
|
||||||
|
vhDomain example2.com
|
||||||
|
}
|
||||||
|
|
||||||
|
member example6.com {
|
||||||
|
vhDomain example6.com
|
||||||
|
}
|
||||||
|
|
||||||
|
member localhost {
|
||||||
|
vhDomain localhost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vhTemplate EasyRailsWithSuEXEC {
|
||||||
|
templateFile conf/templates/rails.conf
|
||||||
|
listeners Default
|
||||||
|
}
|
||||||
|
|
||||||
|
#include /usr/local/lsws/conf/sites.conf
|
@ -0,0 +1,162 @@
|
|||||||
|
default = application/octet-stream
|
||||||
|
3gp = video/3gpp
|
||||||
|
3g2 = video/3gpp2
|
||||||
|
ai, eps = application/postscript
|
||||||
|
aif, aifc, aiff = audio/x-aiff
|
||||||
|
asc = text/plain
|
||||||
|
asf = video/asf
|
||||||
|
asx = video/x-ms-asf
|
||||||
|
au = audio/basic
|
||||||
|
avi = video/x-msvideo
|
||||||
|
bcpio = application/x-bcpio
|
||||||
|
bmp = image/bmp
|
||||||
|
bin = application/octet-stream
|
||||||
|
bz, bz2 = application/x-bzip
|
||||||
|
cdf = application/x-netcdf
|
||||||
|
class = application/java-vm
|
||||||
|
cpio = application/x-cpio
|
||||||
|
cpt = application/mac-compactpro
|
||||||
|
crt = application/x-x509-ca-cert
|
||||||
|
csh = application/x-csh
|
||||||
|
css = text/css
|
||||||
|
dcr,dir, dxr = application/x-director
|
||||||
|
dms = application/octet-stream
|
||||||
|
doc = application/msword
|
||||||
|
dtd = application/xml-dtd
|
||||||
|
dvi = application/x-dvi
|
||||||
|
eot = application/vnd.ms-fontobject
|
||||||
|
etx = text/x-setext
|
||||||
|
exe = application/x-executable
|
||||||
|
ez = application/andrew-inset
|
||||||
|
flv = video/x-flv
|
||||||
|
gif = image/gif
|
||||||
|
gtar = application/x-gtar
|
||||||
|
gz, gzip = application/gzip
|
||||||
|
hdf = application/x-hdf
|
||||||
|
hqx = application/mac-binhex40
|
||||||
|
htc = text/x-component
|
||||||
|
html, htm = text/html
|
||||||
|
ice = x-conference/x-cooltalk
|
||||||
|
ico = image/x-icon
|
||||||
|
ief = image/ief
|
||||||
|
iges, igs = model/iges
|
||||||
|
iso = application/x-cd-image
|
||||||
|
java = text/plain
|
||||||
|
jar = application/java-archive
|
||||||
|
jnlp = application/x-java-jnlp-file
|
||||||
|
jpeg, jpe, jpg = image/jpeg
|
||||||
|
js = application/x-javascript
|
||||||
|
js2 = application/javascript
|
||||||
|
js3 = text/javascript
|
||||||
|
json = application/json
|
||||||
|
jsp = text/plain
|
||||||
|
kar = audio/midi
|
||||||
|
latex = application/x-latex
|
||||||
|
lha, lzh = application/octet-stream
|
||||||
|
man = application/x-troff-man
|
||||||
|
mdb = application/vnd.ms-access
|
||||||
|
me = application/x-troff-me
|
||||||
|
mesh = model/mesh
|
||||||
|
mid, midi = audio/midi
|
||||||
|
mif = application/vnd.mif
|
||||||
|
movie = video/x-sgi-movie
|
||||||
|
mov = video/quicktime
|
||||||
|
mp2, mp3, mpga = audio/mpeg
|
||||||
|
mpeg, mpe, mpg = video/mpeg
|
||||||
|
mp4 = video/mp4
|
||||||
|
mpp = application/vnd.ms-project
|
||||||
|
ms = application/x-troff-ms
|
||||||
|
msh = model/mesh
|
||||||
|
nc = application/x-netcdf
|
||||||
|
oda = application/oda
|
||||||
|
odb = application/vnd.oasis.opendocument.database
|
||||||
|
odc = application/vnd.oasis.opendocument.chart
|
||||||
|
odf = application/vnd.oasis.opendocument.formula
|
||||||
|
odg = application/vnd.oasis.opendocument.graphics
|
||||||
|
odi = application/vnd.oasis.opendocument.image
|
||||||
|
odp = application/vnd.oasis.opendocument.presentation
|
||||||
|
ods = application/vnd.oasis.opendocument.spreadsheet
|
||||||
|
odt = application/vnd.oasis.opendocument.text
|
||||||
|
ogg = audio/ogg
|
||||||
|
otf = application/x-font-woff
|
||||||
|
pbm = image/x-portable-bitmap
|
||||||
|
pdb = chemical/x-pdb
|
||||||
|
pdf = application/pdf
|
||||||
|
pgm = image/x-portable-graymap
|
||||||
|
pgn = application/x-chess-pgn
|
||||||
|
pls = audio/x-scpls
|
||||||
|
png = image/png
|
||||||
|
pnm = image/x-portable-anymap
|
||||||
|
ppm = image/x-portable-pixmap
|
||||||
|
ppt = application/vnd.ms-powerpoint
|
||||||
|
ps = application/postscript
|
||||||
|
qt,qtvr = video/quicktime
|
||||||
|
ra = audio/x-realaudio
|
||||||
|
ram, rm = audio/x-pn-realaudio
|
||||||
|
rar = application/x-rar-compressed
|
||||||
|
ras = image/x-cmu-raster
|
||||||
|
rgb = image/x-rgb
|
||||||
|
roff, t, tr = application/x-troff
|
||||||
|
rss = application/rss+xml
|
||||||
|
rsd = application/rsd+xml
|
||||||
|
rtf = application/rtf
|
||||||
|
rtx = text/richtext
|
||||||
|
ser = application/java-serialized-object
|
||||||
|
sgml, sgm = text/sgml
|
||||||
|
sh = application/x-sh
|
||||||
|
shar = application/x-shar
|
||||||
|
shtml = application/x-httpd-shtml
|
||||||
|
silo = model/mesh
|
||||||
|
sit = application/x-stuffit
|
||||||
|
skd, skm, skp, skt = application/x-koan
|
||||||
|
smi,smil = application/smil
|
||||||
|
snd = audio/basic
|
||||||
|
spl = application/x-futuresplash
|
||||||
|
sql = text/x-sql
|
||||||
|
src = application/x-wais-source
|
||||||
|
sv4cpio = application/x-sv4cpio
|
||||||
|
sv4crc = application/x-sv4crc
|
||||||
|
svg, svgz = image/svg+xml
|
||||||
|
swf = application/x-shockwave-flash
|
||||||
|
tar = application/x-tar
|
||||||
|
tcl = application/x-tcl
|
||||||
|
tex = application/x-tex
|
||||||
|
texi, texinfo = application/x-texinfo
|
||||||
|
tgz = application/x-gtar
|
||||||
|
tiff, tif = image/tiff
|
||||||
|
tsv = text/tab-separated-values
|
||||||
|
ttf, ttc = application/x-font-ttf
|
||||||
|
txt = text/plain
|
||||||
|
ustar = application/x-ustar
|
||||||
|
vcd = application/x-cdlink
|
||||||
|
vrml = model/vrml
|
||||||
|
vxml = application/voicexml+xml
|
||||||
|
wav = audio/vnd.wave
|
||||||
|
wax = audio/x-ms-wax
|
||||||
|
wbmp = image/vnd.wap.wbmp
|
||||||
|
webp = image/webp
|
||||||
|
wma = audio/x-ms-wma
|
||||||
|
wml = text/vnd.wap.wml
|
||||||
|
wmlc = application/vnd.wap.wmlc
|
||||||
|
wmls = text/vnd.wap.wmlscript
|
||||||
|
wmlsc = application/vnd.wap.wmlscriptc
|
||||||
|
woff = application/font-woff
|
||||||
|
woff2 = font/woff2
|
||||||
|
woff3 = font/woff
|
||||||
|
woff4 = application/font-woff2
|
||||||
|
ttf2 = font/ttf
|
||||||
|
woff_o1 = application/x-font-woff
|
||||||
|
wtls-ca-certificate = application/vnd.wap.wtls-ca-certificate
|
||||||
|
wri = application/vnd.ms-write
|
||||||
|
wrl = model/vrml
|
||||||
|
xbm = image/x-xbitmap
|
||||||
|
xhtml, xht = application/xhtml+xml
|
||||||
|
xls = application/vnd.ms-excel
|
||||||
|
xml, xsd, xsl = application/xml
|
||||||
|
xml2 = text/xml
|
||||||
|
xslt = application/xslt+xml
|
||||||
|
xpm = image/x-xpixmap
|
||||||
|
xwd = image/x-xwindowdump
|
||||||
|
xyz = chemical/x-pdb
|
||||||
|
zip = application/zip
|
||||||
|
z = application/compress
|
@ -0,0 +1,162 @@
|
|||||||
|
default = application/octet-stream
|
||||||
|
3gp = video/3gpp
|
||||||
|
3g2 = video/3gpp2
|
||||||
|
ai, eps = application/postscript
|
||||||
|
aif, aifc, aiff = audio/x-aiff
|
||||||
|
asc = text/plain
|
||||||
|
asf = video/asf
|
||||||
|
asx = video/x-ms-asf
|
||||||
|
au = audio/basic
|
||||||
|
avi = video/x-msvideo
|
||||||
|
bcpio = application/x-bcpio
|
||||||
|
bmp = image/bmp
|
||||||
|
bin = application/octet-stream
|
||||||
|
bz, bz2 = application/x-bzip
|
||||||
|
cdf = application/x-netcdf
|
||||||
|
class = application/java-vm
|
||||||
|
cpio = application/x-cpio
|
||||||
|
cpt = application/mac-compactpro
|
||||||
|
crt = application/x-x509-ca-cert
|
||||||
|
csh = application/x-csh
|
||||||
|
css = text/css
|
||||||
|
dcr,dir, dxr = application/x-director
|
||||||
|
dms = application/octet-stream
|
||||||
|
doc = application/msword
|
||||||
|
dtd = application/xml-dtd
|
||||||
|
dvi = application/x-dvi
|
||||||
|
eot = application/vnd.ms-fontobject
|
||||||
|
etx = text/x-setext
|
||||||
|
exe = application/x-executable
|
||||||
|
ez = application/andrew-inset
|
||||||
|
flv = video/x-flv
|
||||||
|
gif = image/gif
|
||||||
|
gtar = application/x-gtar
|
||||||
|
gz, gzip = application/gzip
|
||||||
|
hdf = application/x-hdf
|
||||||
|
hqx = application/mac-binhex40
|
||||||
|
htc = text/x-component
|
||||||
|
html, htm = text/html
|
||||||
|
ice = x-conference/x-cooltalk
|
||||||
|
ico = image/x-icon
|
||||||
|
ief = image/ief
|
||||||
|
iges, igs = model/iges
|
||||||
|
iso = application/x-cd-image
|
||||||
|
java = text/plain
|
||||||
|
jar = application/java-archive
|
||||||
|
jnlp = application/x-java-jnlp-file
|
||||||
|
jpeg, jpe, jpg = image/jpeg
|
||||||
|
js = application/x-javascript
|
||||||
|
js2 = application/javascript
|
||||||
|
js3 = text/javascript
|
||||||
|
json = application/json
|
||||||
|
jsp = text/plain
|
||||||
|
kar = audio/midi
|
||||||
|
latex = application/x-latex
|
||||||
|
lha, lzh = application/octet-stream
|
||||||
|
man = application/x-troff-man
|
||||||
|
mdb = application/vnd.ms-access
|
||||||
|
me = application/x-troff-me
|
||||||
|
mesh = model/mesh
|
||||||
|
mid, midi = audio/midi
|
||||||
|
mif = application/vnd.mif
|
||||||
|
movie = video/x-sgi-movie
|
||||||
|
mov = video/quicktime
|
||||||
|
mp2, mp3, mpga = audio/mpeg
|
||||||
|
mpeg, mpe, mpg = video/mpeg
|
||||||
|
mp4 = video/mp4
|
||||||
|
mpp = application/vnd.ms-project
|
||||||
|
ms = application/x-troff-ms
|
||||||
|
msh = model/mesh
|
||||||
|
nc = application/x-netcdf
|
||||||
|
oda = application/oda
|
||||||
|
odb = application/vnd.oasis.opendocument.database
|
||||||
|
odc = application/vnd.oasis.opendocument.chart
|
||||||
|
odf = application/vnd.oasis.opendocument.formula
|
||||||
|
odg = application/vnd.oasis.opendocument.graphics
|
||||||
|
odi = application/vnd.oasis.opendocument.image
|
||||||
|
odp = application/vnd.oasis.opendocument.presentation
|
||||||
|
ods = application/vnd.oasis.opendocument.spreadsheet
|
||||||
|
odt = application/vnd.oasis.opendocument.text
|
||||||
|
ogg = audio/ogg
|
||||||
|
otf = application/x-font-woff
|
||||||
|
pbm = image/x-portable-bitmap
|
||||||
|
pdb = chemical/x-pdb
|
||||||
|
pdf = application/pdf
|
||||||
|
pgm = image/x-portable-graymap
|
||||||
|
pgn = application/x-chess-pgn
|
||||||
|
pls = audio/x-scpls
|
||||||
|
png = image/png
|
||||||
|
pnm = image/x-portable-anymap
|
||||||
|
ppm = image/x-portable-pixmap
|
||||||
|
ppt = application/vnd.ms-powerpoint
|
||||||
|
ps = application/postscript
|
||||||
|
qt,qtvr = video/quicktime
|
||||||
|
ra = audio/x-realaudio
|
||||||
|
ram, rm = audio/x-pn-realaudio
|
||||||
|
rar = application/x-rar-compressed
|
||||||
|
ras = image/x-cmu-raster
|
||||||
|
rgb = image/x-rgb
|
||||||
|
roff, t, tr = application/x-troff
|
||||||
|
rss = application/rss+xml
|
||||||
|
rsd = application/rsd+xml
|
||||||
|
rtf = application/rtf
|
||||||
|
rtx = text/richtext
|
||||||
|
ser = application/java-serialized-object
|
||||||
|
sgml, sgm = text/sgml
|
||||||
|
sh = application/x-sh
|
||||||
|
shar = application/x-shar
|
||||||
|
shtml = application/x-httpd-shtml
|
||||||
|
silo = model/mesh
|
||||||
|
sit = application/x-stuffit
|
||||||
|
skd, skm, skp, skt = application/x-koan
|
||||||
|
smi,smil = application/smil
|
||||||
|
snd = audio/basic
|
||||||
|
spl = application/x-futuresplash
|
||||||
|
sql = text/x-sql
|
||||||
|
src = application/x-wais-source
|
||||||
|
sv4cpio = application/x-sv4cpio
|
||||||
|
sv4crc = application/x-sv4crc
|
||||||
|
svg, svgz = image/svg+xml
|
||||||
|
swf = application/x-shockwave-flash
|
||||||
|
tar = application/x-tar
|
||||||
|
tcl = application/x-tcl
|
||||||
|
tex = application/x-tex
|
||||||
|
texi, texinfo = application/x-texinfo
|
||||||
|
tgz = application/x-gtar
|
||||||
|
tiff, tif = image/tiff
|
||||||
|
tsv = text/tab-separated-values
|
||||||
|
ttf, ttc = application/x-font-ttf
|
||||||
|
txt = text/plain
|
||||||
|
ustar = application/x-ustar
|
||||||
|
vcd = application/x-cdlink
|
||||||
|
vrml = model/vrml
|
||||||
|
vxml = application/voicexml+xml
|
||||||
|
wav = audio/vnd.wave
|
||||||
|
wax = audio/x-ms-wax
|
||||||
|
wbmp = image/vnd.wap.wbmp
|
||||||
|
webp = image/webp
|
||||||
|
wma = audio/x-ms-wma
|
||||||
|
wml = text/vnd.wap.wml
|
||||||
|
wmlc = application/vnd.wap.wmlc
|
||||||
|
wmls = text/vnd.wap.wmlscript
|
||||||
|
wmlsc = application/vnd.wap.wmlscriptc
|
||||||
|
woff = application/font-woff
|
||||||
|
woff2 = font/woff2
|
||||||
|
woff3 = font/woff
|
||||||
|
woff4 = application/font-woff2
|
||||||
|
ttf2 = font/ttf
|
||||||
|
woff_o1 = application/x-font-woff
|
||||||
|
wtls-ca-certificate = application/vnd.wap.wtls-ca-certificate
|
||||||
|
wri = application/vnd.ms-write
|
||||||
|
wrl = model/vrml
|
||||||
|
xbm = image/x-xbitmap
|
||||||
|
xhtml, xht = application/xhtml+xml
|
||||||
|
xls = application/vnd.ms-excel
|
||||||
|
xml, xsd, xsl = application/xml
|
||||||
|
xml2 = text/xml
|
||||||
|
xslt = application/xslt+xml
|
||||||
|
xpm = image/x-xpixmap
|
||||||
|
xwd = image/x-xwindowdump
|
||||||
|
xyz = chemical/x-pdb
|
||||||
|
zip = application/zip
|
||||||
|
z = application/compress
|
@ -0,0 +1,57 @@
|
|||||||
|
vhRoot /var/www/vhosts/$VH_NAME/
|
||||||
|
configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
|
||||||
|
allowSymbolLink 1
|
||||||
|
enableScript 1
|
||||||
|
restrained 1
|
||||||
|
setUIDMode 2
|
||||||
|
|
||||||
|
virtualHostConfig {
|
||||||
|
docRoot $VH_ROOT/html/
|
||||||
|
enableGzip 1
|
||||||
|
|
||||||
|
errorlog {
|
||||||
|
useServer 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accesslog $SERVER_ROOT/logs/$VH_NAME.access.log {
|
||||||
|
useServer 0
|
||||||
|
rollingSize 100M
|
||||||
|
keepDays 30
|
||||||
|
compressArchive 1
|
||||||
|
}
|
||||||
|
|
||||||
|
index {
|
||||||
|
useServer 0
|
||||||
|
indexFiles index.html, index.php
|
||||||
|
autoIndex 0
|
||||||
|
autoIndexURI /_autoindex/default.php
|
||||||
|
}
|
||||||
|
|
||||||
|
expires {
|
||||||
|
enableExpires 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow *
|
||||||
|
}
|
||||||
|
|
||||||
|
context /cgi-bin/ {
|
||||||
|
type cgi
|
||||||
|
location $VH_ROOT/cgi-bin/
|
||||||
|
}
|
||||||
|
|
||||||
|
context / {
|
||||||
|
location $DOC_ROOT/
|
||||||
|
allowBrowse 1
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
RewriteFile .htaccess
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
enable 0
|
||||||
|
logLevel 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,57 @@
|
|||||||
|
vhRoot /var/www/vhosts/$VH_NAME/
|
||||||
|
configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
|
||||||
|
allowSymbolLink 1
|
||||||
|
enableScript 1
|
||||||
|
restrained 1
|
||||||
|
setUIDMode 0
|
||||||
|
|
||||||
|
virtualHostConfig {
|
||||||
|
docRoot $VH_ROOT/html/
|
||||||
|
enableGzip 1
|
||||||
|
|
||||||
|
errorlog {
|
||||||
|
useServer 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accesslog $SERVER_ROOT/logs/$VH_NAME.access.log {
|
||||||
|
useServer 0
|
||||||
|
rollingSize 100M
|
||||||
|
keepDays 30
|
||||||
|
compressArchive 1
|
||||||
|
}
|
||||||
|
|
||||||
|
index {
|
||||||
|
useServer 0
|
||||||
|
indexFiles index.html, index.php
|
||||||
|
autoIndex 0
|
||||||
|
autoIndexURI /_autoindex/default.php
|
||||||
|
}
|
||||||
|
|
||||||
|
expires {
|
||||||
|
enableExpires 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow *
|
||||||
|
}
|
||||||
|
|
||||||
|
context /cgi-bin/ {
|
||||||
|
type cgi
|
||||||
|
location $VH_ROOT/cgi-bin/
|
||||||
|
}
|
||||||
|
|
||||||
|
context / {
|
||||||
|
location $DOC_ROOT/
|
||||||
|
allowBrowse 1
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
RewriteFile .htaccess
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
enable 0
|
||||||
|
logLevel 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,57 @@
|
|||||||
|
vhRoot /var/www/vhosts/$VH_NAME/
|
||||||
|
configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
|
||||||
|
allowSymbolLink 1
|
||||||
|
enableScript 1
|
||||||
|
restrained 1
|
||||||
|
setUIDMode 0
|
||||||
|
|
||||||
|
virtualHostConfig {
|
||||||
|
docRoot $VH_ROOT/html/
|
||||||
|
enableGzip 1
|
||||||
|
|
||||||
|
errorlog {
|
||||||
|
useServer 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accesslog $SERVER_ROOT/logs/$VH_NAME.access.log {
|
||||||
|
useServer 0
|
||||||
|
rollingSize 100M
|
||||||
|
keepDays 30
|
||||||
|
compressArchive 1
|
||||||
|
}
|
||||||
|
|
||||||
|
index {
|
||||||
|
useServer 0
|
||||||
|
indexFiles index.html, index.php
|
||||||
|
autoIndex 0
|
||||||
|
autoIndexURI /_autoindex/default.php
|
||||||
|
}
|
||||||
|
|
||||||
|
expires {
|
||||||
|
enableExpires 1
|
||||||
|
}
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow *
|
||||||
|
}
|
||||||
|
|
||||||
|
context /cgi-bin/ {
|
||||||
|
type cgi
|
||||||
|
location $VH_ROOT/cgi-bin/
|
||||||
|
}
|
||||||
|
|
||||||
|
context / {
|
||||||
|
location $DOC_ROOT/
|
||||||
|
allowBrowse 1
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
RewriteFile .htaccess
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
enable 0
|
||||||
|
logLevel 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,74 @@
|
|||||||
|
allowSymbolLink 1
|
||||||
|
chrootMode 0
|
||||||
|
enableScript 1
|
||||||
|
restrained 1
|
||||||
|
setUIDMode 2
|
||||||
|
vhRoot $SERVER_ROOT/$VH_NAME/
|
||||||
|
configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
|
||||||
|
|
||||||
|
virtualHostConfig {
|
||||||
|
enableGzip 1
|
||||||
|
docRoot $VH_ROOT/public/
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow *
|
||||||
|
}
|
||||||
|
|
||||||
|
hotlinkCtrl {
|
||||||
|
suffixes gif, jpeg, jpg
|
||||||
|
allowDirectAccess 1
|
||||||
|
onlySelf 1
|
||||||
|
enableHotlinkCtrl 0
|
||||||
|
}
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
enable 0
|
||||||
|
logLevel 0
|
||||||
|
}
|
||||||
|
|
||||||
|
index {
|
||||||
|
useServer 0
|
||||||
|
autoIndex 0
|
||||||
|
indexFiles index.html
|
||||||
|
autoIndexURI /_autoindex/default.php
|
||||||
|
}
|
||||||
|
|
||||||
|
accessLog $SERVER_ROOT/logs/$VH_NAME.access.log{
|
||||||
|
logHeaders 3
|
||||||
|
compressArchive 0
|
||||||
|
useServer 0
|
||||||
|
keepDays 30
|
||||||
|
rollingSize 500M
|
||||||
|
}
|
||||||
|
|
||||||
|
errorlog {
|
||||||
|
useServer 1
|
||||||
|
}
|
||||||
|
|
||||||
|
context / {
|
||||||
|
railsEnv 1
|
||||||
|
maxConns 5
|
||||||
|
location $VH_ROOT/
|
||||||
|
type rails
|
||||||
|
accessControl
|
||||||
|
addDefaultCharset off
|
||||||
|
rewrite {
|
||||||
|
RewriteFile .htaccess
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
expires {
|
||||||
|
enableExpires 1
|
||||||
|
}
|
||||||
|
|
||||||
|
awstats {
|
||||||
|
workingDir $VH_ROOT/awstats
|
||||||
|
awstatsURI /awstats/
|
||||||
|
siteDomain localhost
|
||||||
|
siteAliases 127.0.0.1 localhost
|
||||||
|
updateMode 0
|
||||||
|
updateInterval 86400
|
||||||
|
updateOffset 0
|
||||||
|
securedConn 0
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
allowSymbolLink 1
|
||||||
|
chrootMode 0
|
||||||
|
enableScript 1
|
||||||
|
restrained 1
|
||||||
|
setUIDMode 2
|
||||||
|
vhRoot $SERVER_ROOT/$VH_NAME/
|
||||||
|
configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
|
||||||
|
|
||||||
|
virtualHostConfig {
|
||||||
|
enableGzip 1
|
||||||
|
docRoot $VH_ROOT/public/
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
allow *
|
||||||
|
}
|
||||||
|
|
||||||
|
hotlinkCtrl {
|
||||||
|
suffixes gif, jpeg, jpg
|
||||||
|
allowDirectAccess 1
|
||||||
|
onlySelf 1
|
||||||
|
enableHotlinkCtrl 0
|
||||||
|
}
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
enable 0
|
||||||
|
logLevel 0
|
||||||
|
}
|
||||||
|
|
||||||
|
index {
|
||||||
|
useServer 0
|
||||||
|
autoIndex 0
|
||||||
|
indexFiles index.html
|
||||||
|
autoIndexURI /_autoindex/default.php
|
||||||
|
}
|
||||||
|
|
||||||
|
accessLog $SERVER_ROOT/logs/$VH_NAME.access.log{
|
||||||
|
logHeaders 3
|
||||||
|
compressArchive 0
|
||||||
|
useServer 0
|
||||||
|
keepDays 30
|
||||||
|
rollingSize 500M
|
||||||
|
}
|
||||||
|
|
||||||
|
errorlog {
|
||||||
|
useServer 1
|
||||||
|
}
|
||||||
|
|
||||||
|
context / {
|
||||||
|
railsEnv 1
|
||||||
|
maxConns 5
|
||||||
|
location $VH_ROOT/
|
||||||
|
type rails
|
||||||
|
accessControl
|
||||||
|
addDefaultCharset off
|
||||||
|
rewrite {
|
||||||
|
RewriteFile .htaccess
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
expires {
|
||||||
|
enableExpires 1
|
||||||
|
}
|
||||||
|
|
||||||
|
awstats {
|
||||||
|
workingDir $VH_ROOT/awstats
|
||||||
|
awstatsURI /awstats/
|
||||||
|
siteDomain localhost
|
||||||
|
siteAliases 127.0.0.1 localhost
|
||||||
|
updateMode 0
|
||||||
|
updateInterval 86400
|
||||||
|
updateOffset 0
|
||||||
|
securedConn 0
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
group1: user1,user2, user3
|
||||||
|
group2:
|
||||||
|
user: user8, test
|
||||||
|
group3:
|
@ -0,0 +1,2 @@
|
|||||||
|
test:kF2EDBE2Ux8sQ
|
||||||
|
user1:SQtevcsBBnBPY
|
@ -0,0 +1,115 @@
|
|||||||
|
docRoot $VH_ROOT/html/
|
||||||
|
enableGzip 1
|
||||||
|
|
||||||
|
|
||||||
|
context / {
|
||||||
|
allowBrowse 1
|
||||||
|
location $DOC_ROOT/
|
||||||
|
rewrite {
|
||||||
|
RewriteFile .htaccess
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
context /docs/{
|
||||||
|
allowBrowse 1
|
||||||
|
location $SERVER_ROOT/docs/
|
||||||
|
}
|
||||||
|
|
||||||
|
context /protected/{
|
||||||
|
required user test
|
||||||
|
authName Protected
|
||||||
|
allowBrowse 1
|
||||||
|
location protected/
|
||||||
|
realm SampleProtectedArea
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
deny
|
||||||
|
allow *
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
context /blocked/{
|
||||||
|
allowBrowse 0
|
||||||
|
}
|
||||||
|
|
||||||
|
context /cgi-bin/{
|
||||||
|
allowBrowse 1
|
||||||
|
location $VH_ROOT/cgi-bin/
|
||||||
|
type cgi
|
||||||
|
}
|
||||||
|
|
||||||
|
expires {
|
||||||
|
enableExpires 1
|
||||||
|
}
|
||||||
|
|
||||||
|
index {
|
||||||
|
autoIndexURI /_autoindex/default.php
|
||||||
|
indexFiles index.html
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
awstats {
|
||||||
|
updateInterval 86400
|
||||||
|
workingDir $VH_ROOT/awstats
|
||||||
|
updateOffset 0
|
||||||
|
siteDomain localhost
|
||||||
|
siteAliases 127.0.0.1 localhost
|
||||||
|
updateMode 0
|
||||||
|
awstatsURI /awstats/
|
||||||
|
}
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
enable 0
|
||||||
|
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/Example/htpasswd
|
||||||
|
}
|
||||||
|
|
||||||
|
groupDB {
|
||||||
|
cacheTimeout 60
|
||||||
|
maxCacheSize 200
|
||||||
|
location conf/vhosts/Example/htgroup
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
general {
|
||||||
|
enableContextAC 0
|
||||||
|
}
|
@ -0,0 +1,115 @@
|
|||||||
|
docRoot $VH_ROOT/html/
|
||||||
|
enableGzip 1
|
||||||
|
|
||||||
|
|
||||||
|
context / {
|
||||||
|
allowBrowse 1
|
||||||
|
location $DOC_ROOT/
|
||||||
|
rewrite {
|
||||||
|
RewriteFile .htaccess
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
context /docs/{
|
||||||
|
allowBrowse 1
|
||||||
|
location $SERVER_ROOT/docs/
|
||||||
|
}
|
||||||
|
|
||||||
|
context /protected/{
|
||||||
|
required user test
|
||||||
|
authName Protected
|
||||||
|
allowBrowse 1
|
||||||
|
location protected/
|
||||||
|
realm SampleProtectedArea
|
||||||
|
|
||||||
|
accessControl {
|
||||||
|
deny
|
||||||
|
allow *
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
context /blocked/{
|
||||||
|
allowBrowse 0
|
||||||
|
}
|
||||||
|
|
||||||
|
context /cgi-bin/{
|
||||||
|
allowBrowse 1
|
||||||
|
location $VH_ROOT/cgi-bin/
|
||||||
|
type cgi
|
||||||
|
}
|
||||||
|
|
||||||
|
expires {
|
||||||
|
enableExpires 1
|
||||||
|
}
|
||||||
|
|
||||||
|
index {
|
||||||
|
autoIndexURI /_autoindex/default.php
|
||||||
|
indexFiles index.html
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
awstats {
|
||||||
|
updateInterval 86400
|
||||||
|
workingDir $VH_ROOT/awstats
|
||||||
|
updateOffset 0
|
||||||
|
siteDomain localhost
|
||||||
|
siteAliases 127.0.0.1 localhost
|
||||||
|
updateMode 0
|
||||||
|
awstatsURI /awstats/
|
||||||
|
}
|
||||||
|
|
||||||
|
rewrite {
|
||||||
|
enable 0
|
||||||
|
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/Example/htpasswd
|
||||||
|
}
|
||||||
|
|
||||||
|
groupDB {
|
||||||
|
cacheTimeout 60
|
||||||
|
maxCacheSize 200
|
||||||
|
location conf/vhosts/Example/htgroup
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
general {
|
||||||
|
enableContextAC 0
|
||||||
|
}
|
Loading…
Reference in new issue