Oh yeah it worked.
And this is the vhconf.conf
docRoot $VH_ROOT/html/
enableGzip 1
errorlog $VH_ROOT/logs/error.log {
useServer 1
logLevel DEBUG
rollingSize 10M
}
accesslog $VH_ROOT/logs/access.log {
useServer 0
rollingSize 10M
keepDays 30
compressArchive 0
}
index {
useServer 0
indexFiles index.html, index.php
autoIndex 0
autoIndexURI /_autoindex/default.php
}
errorpage 404 {
url /error404.html
}
expires {
enableExpires 1
}
accessControl {
allow *
}
realm SampleProtectedArea {
userDB {
location conf/vhosts/Example/htpasswd
maxCacheSize 200
cacheTimeout 60
}
groupDB {
location conf/vhosts/Example/htgroup
maxCacheSize 200
cacheTimeout 60
}
}
context /.well-known/ {
location /usr/local/lsws/Example/html/
allowBrowse 1
addDefaultCharset off
}
context / {
type appserver
location /usr/local/lsws/Example/html/demo/
binPath /usr/local/lsws/fcgi-bin/lswsgi
appType wsgi
startupFile demo/wsgi.py
env PYTHONHOME=/usr/local/lsws/Example/html/
addDefaultCharset off
}
rewrite {
enable 1
autoLoadHtaccess 1
logLevel 0
}
vhssl {
keyFile /usr/local/lsws/conf/example.key
certFile /usr/local/lsws/conf/example.crt
certChain 1
}