Skip to main content

Cpanel only dns server default page customization

Comments

12 comments

  • quietFinn

    I don't think it's possible there is no web server (Apache) in a DNSONLY server.

     

    0
  • MD Noyon Ali

    Cpanel dns only already have a default page. I just want to replace the page.

    0
  • cPRex Jurassic Moderator

    When there is no webserver running, the cPanel service (cpsrvd) listens for Apache connections.  You'll likely want to adjust the data in /var/www/html for the default page that shows up.

    0
  • quietFinn

    There is no /var/www/html in DNSONLY server.

     

    0
  • cPRex Jurassic Moderator

    Hmm....let me look into this a bit more and I'll get back with you!

    0
  • cPRex Jurassic Moderator

    I looked into this a bit and found that there is no native way to stop that page from showing up.  Since web pages are served by cpsrvd when Apache isn't running, the only option we have would be to disable cPanel from listening on that service and then a custom webserver installed.

    To get cPanel to stop listening you can run this command:

    whmapi1 set_tweaksetting key='disable_cphttpd' value='1' ; /scripts/restartsrv_cpsrvd

    but installing and configuring the webserver would be up to you.

    I would recommend using our features site at features.cpanel.net to submit a request to make this easier to handle in the future.

    0
  • Benito

    It would be very helpful if we could at least redirect the occasional visitors to another URL with an htaccess or similar.

    0
  • cPRex Jurassic Moderator

    Benito - in general, there likely aren't very many people typing in "nameserver.address.com" into their browser, so this shouldn't be a common issue.  Does disabling the service listening not solve the issue for you?

    If you'd like to see that redirection be an option, were you able to submit a feature request?

    0
  • Benito

    Hey! 

    I have not tried disabling the service, does that disable the use of WHM?

    I have already submitted the feature request.

    0
  • cPRex Jurassic Moderator

    No, that doesn't change the behavior of WHM in any way.  cPanel just listens on port 80 when Apache is disabled, which is the case on a DNSOnly system, but WHM uses its own internal PHP and web services to display those pages.

    0
  • Benito

    cPRex worked like a charm, redirecting feature now is only a nice to have.

    Thanks!

    0
  • cPRex Jurassic Moderator

    Nice!  I'll still bring that up with the team during our next meeting though ;)

    0

Please sign in to leave a comment.