I followed this tutorial to install SSL:
https://www.plothost.com/kb/setup-ssl-certificate-hostname-centos-web-panel/Now I cannot access the CWP admin or user panels.
The page won't display.
I think the issue is because the hostname: xxx.domain.com
is the same as the vost account that I created: xxx.domain.com
Access log:
/usr/local/apache/logs/error_log:692:AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using vps.a-i-s.net. Set the 'ServerName' directive globally to suppress this message
Error log:
[Sun Jul 01 01:00:06.664068 2018] [:error] [pid 1008:tid 140707378505472] [client 171.233.23.2:35754] [client 171.233.23.2] ModSecurity: Access denied with code 403 (phase 2). Operator EQ matched 0 at REQUEST_HEADERS. [file "/usr/local/apache/modsecurity-owasp-old/base_rules/modsecurity_crs_21_protocol_anomalies.conf"] [line "29"] [id "960008"] [rev "2"] [msg "Request Missing a Host Header"] [severity "WARNING"] [ver "OWASP_CRS/2.2.9"] [maturity "9"] [accuracy "9"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/MISSING_HEADER_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "103.114.161.155"] [uri "/"] [unique_id "WzgZhocPizwclLbzsgTuxgAAAEU"]
I have tried the following of which none have helped:
1. commenting out the virtual host in vhosts.conf.
2. commenting the vhost dns zone in named.conf
3. setting the server name directive
Any ideas on how I can get back into the CWP admin panel?
Or how I can delete a cwp user account from the command line?
TIA for any help.