enablegzip 1
docroot /home/epictravelexpeditions.com/parkerslingshot
vhdomain $VH_NAME
phpinioverride 
vhaliases www.$VH_NAME
enableipgeo 1
adminemails admin@epictravelexpeditions.com

errorlog $VH_ROOT/logs/epictravelexpeditions.com.error_log {
    rollingsize 10M
    loglevel WARN
    useserver 0
}

rewrite  {
    autoloadhtaccess 1
    enable 1
}

scripthandler  {
    add lsapi:epict63871534 php
}

extprocessor epict63871534 {
    extgroup epict6387
    memsoftlimit 1024M
    autostart 1
    prochardlimit 500
    address UDS://tmp/lshttpd/epict63871534.sock
    maxconns 10
    memhardlimit 1024M
    procsoftlimit 400
    inittimeout 60
    retrytimeout 0
    persistconn 1
    pckeepalivetimeout 1
    respbuffer 0
    path /usr/local/lsws/lsphp85/bin/lsphp
    extuser epict6387
    type lsapi
    env LSAPI_CHILDREN=10
}

context /.well-known/acme-challenge {
    location /usr/local/lsws/Example/html/.well-known/acme-challenge
    adddefaultcharset off
    phpinioverride 
    allowbrowse 1

    rewrite  {
        enable 0
    }
}

vhssl  {
    certchain 1
    sslprotocol 24
    enableecdhe 1
    keyfile /etc/letsencrypt/live/parkerslingshot.epictravelexpeditions.com/privkey.pem
    certfile /etc/letsencrypt/live/parkerslingshot.epictravelexpeditions.com/fullchain.pem
    enablestapling 1
    ocsprespmaxage 86400
    renegprotection 1
    sslsessioncache 1
    enablespdy 15
}

module cache {
    unknownkeywords storagepath /usr/local/lsws/cachedata/$VH_NAME
    param storagepath /usr/local/lsws/cachedata/$VH_NAME
}

index  {
    indexfiles index.php, index.html
    useserver 0
}

accesslog $VH_ROOT/logs/epictravelexpeditions.com.access_log {
    compressarchive 1
    logformat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i""
    rollingsize 10M
    keepdays 10
    useserver 0
    logheaders 5
}
