Hi,
We use OpenLiteSpeed to host .php website.
We have create a Virtual Host template (conf file below). And we add new virtual host to this template.
10 websites work well as a member of this template.
When we add an eleventh site to this template we have the following error:
MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!
On website we saw a 403 error.
If we change the order of the websites in /usr/local/lsws/conf/http_config.conf.
Only the last one has the 403 error.
Is there a limitation on members number ?
LSAPI limitation on number of lsphp running process ?
Limitation on the .sock number of connection ?
Any help is welcome.
Regards,
Seb.
OS Release:
LiteSpeed :
Virtual Host template :
We use OpenLiteSpeed to host .php website.
We have create a Virtual Host template (conf file below). And we add new virtual host to this template.
10 websites work well as a member of this template.
When we add an eleventh site to this template we have the following error:
MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!
On website we saw a 403 error.
If we change the order of the websites in /usr/local/lsws/conf/http_config.conf.
Only the last one has the 403 error.
Is there a limitation on members number ?
LSAPI limitation on number of lsphp running process ?
Limitation on the .sock number of connection ?
Any help is welcome.
Regards,
Seb.
OS Release:
Code:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
UBUNTU_CODENAME=jammy
LiteSpeed :
Code:
LiteSpeed/1.7.16 Open (BUILD built: Thu Nov 17 16:18:46 UTC 2022)
module versions:
lsquic 3.1.1
modgzip 1.1
cache 1.64
mod_security 1.4
Virtual Host template :
Code:
vhRoot /www/$VH_NAME/
configFile /www/$VH_NAME/conf/vhconf.conf
allowSymbolLink 1
enableScript 1
restrained 1
staticReqPerSec 40
dynReqPerSec 2
outBandwidth 100000000
virtualHostConfig {
docRoot /www/$VH_NAME/html/
enableGzip 1
errorlog /www/$VH_NAME/logs/error.log {
useServer 0
logLevel WARN
rollingSize 128M
keepDays 30
compressArchive 1
}
accesslog /www/$VH_NAME/logs/access.log {
useServer 0
logFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"
logHeaders 7
rollingSize 128M
keepDays 10
compressArchive 1
}
index {
useServer 0
indexFiles index.html, index.php
}
scripthandler {
add lsapi:$VH_NAME-lsphp php
}
phpIniOverride {
php_value post_max_size 64M
php_value memory_limit 128M
php_value max_execution_time 30
php_value max_input_time 60
php_value upload_max_filesize 64M
php_value max_file_uploads 100
}
accessControl {
allow ALL
}
lsrecaptcha {
type 0
}
extprocessor $VH_NAME-lsphp {
type lsapi
address uds://tmp/lshttpd/lsphp81.sock
maxConns 10
env PHP_LSAPI_CHILDREN=10
env PHP_LSAPI_AVOID_FORK=1
env PHP_LSAPI_MAX_IDLE=300
env PHP_LSAPI_MAX_REQUESTS=1000
initTimeout 60
retryTimeout 0
persistConn 1
respBuffer 0
autoStart 2
path lsphp81/bin/lsphp
backlog 100
instances 1
memSoftLimit 2047M
memHardLimit 2047M
procSoftLimit 400
procHardLimit 500
}
context / {
location $DOC_ROOT/
allowBrowse 1
enableExpires 1
rewrite {
RewriteFile .htaccess
}
addDefaultCharset off
}
rewrite {
enable 1
autoLoadHtaccess 1
}
vhssl {
keyFile /etc/letsencrypt/live/$VH_NAME/privkey.pem
certFile /etc/letsencrypt/live/$VH_NAME/fullchain.pem
certChain 1
}
module cache {
storagePath /www/$VH_NAME/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
}
}
Last edited: