Author Topic: Cannot Access CWP after Creating a New Account + SSL  (Read 85 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Cannot Access CWP after Creating a New Account + SSL
« on: July 01, 2018, 02:57:15 AM »
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.

Offline
*
Re: Cannot Access CWP after Creating a New Account + SSL
« Reply #1 on: July 01, 2018, 03:23:36 PM »
test running this
Code: [Select]
sh /scripts/cwpsrv_rebuild_user_conf

Offline
*
Re: Cannot Access CWP after Creating a New Account + SSL
« Reply #2 on: July 03, 2018, 09:46:31 AM »
Thanks for this great post. This is really helpful for me. Also, see
download epsxeapp