| Server IP : 150.230.34.123 / Your IP : 216.73.217.23 Web Server : LiteSpeed System : Linux amd-instance-20210802-1657 5.15.0-1042-oracle #48~20.04.1-Ubuntu SMP Mon Aug 21 18:27:46 UTC 2023 x86_64 User : ubuntu ( 1001) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/lsws/conf/vhosts/aloysius/ |
Upload File : |
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
expiresByType text/css=A31557600, text/javascript=A31557600, application/javascript=A31557600, application/x-javascript=A31557600, application/pdf=A31557600, image/*=A31557600, image/x-icon=A31557600, image/vnd.microsoft.icon=A31557600, image/svg+xml=A31557600, image/jpeg=A31557600, image/gif=A31557600, image/png=A31557600, image/webp=A31557600, audio/ogg=A31557600, video/ogg=A31557600, video/mpeg=A31557600, video/mp4=A31557600, video/webm=A31557600, font/*=A604800, application/x-font-ttf=A31557600, application/x-font-woff=A31557600, application/font-woff=A31557600, application/font-woff2=A31557600, application/vnd.ms-fontobject=A31557600, font/ttf=A31557600, font/otf=A31557600, font/woff=A31557600, font/woff2=A31557600
}
accessControl {
allow *
}
realm SampleProtectedArea {
userDB {
location conf/vhosts/$VH_NAME/htpasswd
maxCacheSize 200
cacheTimeout 60
}
groupDB {
location conf/vhosts/$VH_NAME/htgroup
maxCacheSize 200
cacheTimeout 60
}
}
context / {
location $DOC_ROOT/
allowBrowse 1
rewrite {
RewriteFile .htaccess
}
}
context /docs/ {
location $SERVER_ROOT/docs/
allowBrowse 1
}
context /protected/ {
location protected/
allowBrowse 1
realm SampleProtectedArea
authName Protected
required user test
accessControl {
allow *
}
}
context /blocked/ {
allowBrowse 0
}
context /cgi-bin/ {
type cgi
location $VH_ROOT/cgi-bin/
}
context /.well-known/ {
location /usr/local/lsws/aloysius/html/.well-known/
allowBrowse 1
addDefaultCharset off
}
rewrite {
enable 1
autoLoadHtaccess 1
logLevel 0
rules <<<END_rules
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
END_rules
}