Tuesday, November 29, 2022
Google search engine
HomeLinux TutorialsRemove IP URL to cPanel

Remove IP URL to cPanel

You can follow the steps referenced below to Remove IP URL to cPanel (partly taken from our SSL FAQ document) to prevent access to your domain name over it’s IP address.

Introduction

cPanel is one of the most popular control panels among web developers and hosting companies. It is typically paired with WHM (Web Host Manager) – both components work hand-in-hand, with each playing separate roles. Web Host Manager provides administrative control over the server. In addition to server configurations, WHM creates multiple accounts and manages more than one website.

Furthermore, the cPanel dashboard provides various web files, MySQL, statistics, data tracking, and SEO features. It is no wonder that cPanel is one of the most popular control panels among web developers and hosting companies.

To specify, when a hosting provider manages a server with WHM and creates cPanel accounts for their customers, this practice is known as cPanel hosting.

Remove IP URL to cPanel

    1. Navigate to WHM’s Include Editor interface (Home » Service Configuration » Apache Configuration).
    2. Select Include editor
    3. Select the Pre Virtual Host Include option.
    4. Select the Apache version from the menu. We recommend that you select All Versions.
    5. Enter the following text in the available text box below:
<VirtualHost IPADDRESS:80>
  ServerName HOSTNAME
  DocumentRoot /usr/local/apache/htdocs
  ServerAdmin EMAIL
  <IfModule mod_suphp.c>
    suPHP_UserGroup nobody nobody
  </IfModule>
 </VirtualHost>

<VirtualHost IPADDRESS:443>
  ServerName HOSTNAME
  DocumentRoot /usr/local/apache/htdocs
  ServerAdmin EMAIL
  <IfModule mod_suphp.c>
    suPHP_UserGroup nobody nobody
  </IfModule>
    SSLEngine on
    SSLCertificateFile SSLCERTIFICATEFILE
    SSLCertificateKeyFile YOUR-SSLCERTIFICATEKEYFILE
 </VirtualHost>

Note:

This example uses the following values:
IPADDRESS represents your IP address.
HOSTNAME represents your server’s hostname.
EMAIL represents your contact email address.
SSLCERTIFICATEFILE represents the full file path to your SSL certificate.
SSLCERTIFICATEKEYFILE represents the full file path to your SSL certificate’s key.

Click Proceed & Click Update.

YOU CAN SUPPORT DEVNINJA WITH A CUP OF COFFEE

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online. to search or browse the published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or more ) as a token of appreciation.

Support Us

DevNinja
DevNinja
System & Network Administrator Ninja
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

twelve + two =

- Advertisment -
Google search engine

Most Popular

Recent Comments