CWP HTTP Test Page hijack public_html homepage

Started by n8v8r, February 07, 2018, 02:41:42 PM

Previous topic - Next topic

n8v8r

After having gone through a change of the server name via the CWP panel the CWP HTTP Test Page is being displayed as opposed to the domain's public home page. Latter is located in /home/USERNAME/public_html and there is only one index.php and nothing else.

There are also no index.html in the nginx or apache public html paths.

How to release the grip of the CWP HTTP Test Page  ???

n8v8r

Looked now everywhere, redirects "index.html", and do not understand how this hijack is happening or how to get rid of it ???

n8v8r

pointing manually to the public_html/index.php gets a
QuoteNot Found
The requested URL /index.php was not found on this server.

bullten


n8v8r

Just had the idea a few minutes ago and did but no remedy  :'( I am using Nginx as proxy and thus the apache vhost would likely not make an impact.

it is asif CWP is pointing to the wrong home directory

n8v8r

#5
CWP HTTP Test Page is stating
QuoteTo prevent this page from ever being used, delete index.html in /public_html.
But there is no such file in /home/USERNAME/public_html, only the index.php of the domain's home page.

I am pulling hair and biting nails  ::)

n8v8r

the nginx vhosts where rebuilt along with the apache vhosts but the hijack is still in place though. There is no index.html in apache's /var/www/. There is one niginx's /usr/share/nginx/html/ but that would display information about nginx and not the CWP HTTP Test Page

bullten


n8v8r

#8
renamed public_html/index.php topublic_html/index.html and pointed the browser directly to my.domain/index.html and the CWP HTTP Test Page shows.

Reversing to public_html/index.php and pointing the browser directly to my.domain/index.php shows the same old Not Found
Removing the index page entirely and pointing to my.domain shows the CWP test page. Pointing directly to my.domain/index.html is showing the CWP Test page too.

So how and where is CWP loading/injecting its test page into the public domain ???

bullten

I think its reading page from /usr/local/apache/htdocs/index.html

n8v8r

Yes it does indeed. Removing it however does not remove the hijack. Instead of showing the public_html/index.php it is still pointing to /usr/local/apache/htdocs/ and now showing
QuoteIndex of /
webftp_simple/

bullten

:)

Did you accidentally installed additional apache?

yum list installed | grep httpd

What you see there?

n8v8r

Neither consciously or subconsciously, if at all it happened by CWP script for renaming the server..
anyways, the output reads
Quotecwp-httpd.x86_64                        2.4.29-1                       @cwp

bullten

Can you goto select webserver and then select only apache and rebuild the server again to see if it solves the problem?

n8v8r

Just did, for sake of good measure also rebooted the entire OS and still no remedy. The output still reads
Quotecwp-httpd.x86_64                        2.4.29-1                       @cwp

If I am to understand this output correctly then CWP is now acting as httpd instead of apache  ??? What a fine mess  >:(