Skip to main content

Removing IP URL to cPanel

Comments

2 comments

  • 24x7server
    Hi, If you have a domain coming through CloudFlare, and when you access cPanel through such domain, you might experience some cPanel layout issues in the panel.. You can use the CloudFlare to protect your domain from attack, but if you want to protect your server from this, you will have to get a hardware firewall for your server, so it will be protected..
    0
  • cPanelMichael
    Hello, You can follow the steps referenced below (partly taken from our Include Editor interface (WHM Home >> Service Configuration >> Apache Configuration >> Include Editor). 2. Select the Pre Virtual Host Include option. 3. Select the Apache version from the menu. We recommend that you select All Versions. 4. Enter the following text in the available text box: ServerName HOSTNAME DocumentRoot /usr/local/apache/htdocs ServerAdmin EMAIL suPHP_UserGroup nobody nobody ServerName HOSTNAME DocumentRoot /usr/local/apache/htdocs ServerAdmin EMAIL suPHP_UserGroup nobody nobody SSLEngine on SSLCertificateFile SSLCERTIFICATEFILE SSLCertificateKeyFile YOUR-SSLCERTIFICATEKEYFILE
    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.
    5. Click Proceed 6. Click Update. Additionally, note that you'd need to update the DocumentRoot values to reflect a directory with an index file or .htaccess file that denys access. As far as your second question, CloudFlare should come before the cPanel server. See this page on their documentation: My cPanel won't load or keeps logging me out after enabling Cloudflare Thank you.
    0

Please sign in to leave a comment.