DNSOnly VPS - Default webpage when accessing host

CB-Services

Member
Nov 12, 2021
5
2
3
NL
cPanel Access Level
Root Administrator
DNSOnly doesn't have that directory.

@quietFinn - DNSOnly doesn't have an Account Functions section either.

I found that it is actually /var/www/html but it doesnt recognize index.php as the default index file; problem fixed.

Thanks for the suggestions.
This directory does also not exist... How to change the default page when going to the hostname of a dnsonly cpanel?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,731
1,864
363
cPanel Access Level
Root Administrator
Hey there! In a modern DNSOnly system, cPanel actually listens on the common ports instead of Apache, which is why you're able to get a 404 page at all by visiting the server's hostname. You can confirm this on your machine with this command:

Code:
netstat -lpn | grep 80
and you'll see something similar to this:

Code:
# netstat -lnp | grep :80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1272/cpsrvd (SSL) -
There is currently no way to customize that page since the contents are generated directly from cpsrvd through a perl module, although that sounds like it would make for a good feature request if you'd like to submit one using the link in my signature.