OS: Ubuntu 20.04 ESM - all system pkg’s updated.
Cyberpanel Version Information 2.4 Build 4
Have a problem when suspending a website. Cyberpanel is inserting the rule but the website is not suspending.
Also removed the .htaccess from public_html of the website.
No errors in cyberpanel logs.
providing the vhost file:
Website Suspension Configuration
context /{
location $DOC_ROOT/
allowBrowse 1
rewrite {
enable 1
autoLoadHtaccess 0
rules <<<END_rules
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/cyberpanel_suspension_page.html$
RewriteRule ^(.*)$ /cyberpanel_suspension_page.html [L]
END_rules
}
addDefaultCharset off
}
context /cyberpanel_suspension_page.html {
location /usr/local/CyberCP/websiteFunctions/suspension.html
accessible 1
extraHeaders X-Frame-Options: DENY
allowBrowse 1
}
End Website Suspension Configuration
<VirtualHost *:80>
ServerName test.test.com
ServerAlias www.test.test.com
ServerAdmin [email protected]
SuexecUserGroup test test
DocumentRoot /home/test.test.com/public_html
Alias /.well-known/acme-challenge /usr/local/lsws/Example/html/.well-known/acme-challenge
CustomLog /home/test.test.com/logs/test.test.com.access_log combined
AddHandler application/x-httpd-php84 .php .php7 .phtml
<IfModule LiteSpeed>
CacheRoot lscache
CacheLookup on
</IfModule>
<VirtualHost *:443>
ServerName test.test.com
ServerAlias www.test.test.com
ServerAdmin [email protected]
SuexecUserGroup test test
DocumentRoot /home/test.test.com/public_html
CustomLog /home/test.test.com/logs/test.test.com.access_log combined
<IfModule LiteSpeed>
CacheRoot lscache
CacheLookup on
</IfModule>
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /etc/letsencrypt/live/test.test.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/test.test.com/privkey.pem
AddHandler application/x-httpd-php84 .php .php7 .phtml
Its only working if i manually insert suspension rules in <VirtualHost *:80> and <VirtualHost *:443>.