Support
- Advanced Backup
- Client Side
- Cloud Enterprise
- ColdFusion
- Control Panel
- cPanel
- Addon
- Apachebuild
- Changerootpassword
- Configure
- Cpmysqldb
- Createemailuser
- Createftpuser
- Hostname
- Mainipwebsite
- Newaccount
- Packages
- Parkdomain
- Phpmyadminaccess
- Restartservices
- Services
- Timezone
- Whitelistpremiumspamservers
- Cpanelvps
- Configuring cPanel wide email filters
- Managing your suspended page in WHM
- Creating an add-on domain or pointer
- Creating an auto responder
- Creating Cron Jobs
- Using the database wizard
- Forward Domain Emails to Another Domain
- Forward Emails
- Reset Email User Passwords
- Install FrontPage Extensions
- Manage FTP Sessions
- Provide Hotlink Protection
- Use Image Manager
- Change cPanel Language
- Create a Mailing List
- Manage MIME Types
- Park a Domain
- Reset/Modify cPanel Account Password in WHM
- Using PHPMyAdmin in cPanel
- Set Up Remote Access Key
- Create Subdomains
- Change Control Panel Theme
- Manage Bandwidth Limits
- Update Contact Information
- Deny IPs
- Trace an Email Address
- Disable Reset Password Option
- Redirect URLs
- Suspend Accounts
- Configure Email User Filters
- Add a MySQL Database in cPanel
- Fix a WHM DNS Error
- Fix Suspended Page in WHM
- How to Modify the Number of Processes for SpamAssassin in cPanel
- Enabling Domain Keys In cPanel
- Install SSL in cPanel
- Using Winscp To Upload Files To A cPanel Server
- Migrating From cPanel To Plesk
- Preview Website on a Linux Server via cPanel
- Fix Expired License Error with WHM
- Installing ImageMagick For cPanel
- Changing the Mail Routing Settings in cPanel
- MySQL Disk Usage Tracking
- Set Up a Password Protected Directory in Cpanel
- Restart Services in WHM
- PCI Compliance in Cpanel
- Advanced Policy Firewall
- Customer Portal
- DNS Information
- Dedicated Servers
- DirectAdmin
- Domain Name
- dotDefender
- Dreamweaver
- FileCatalyst
- Front Page
- FTP
- General Information
- Hosted Exchange & SharePoint
- IIS6
- IIS7
- Juniper Netscreen Firewalls
- Linux
- List Server
- MIVA Merchant
- MySQL
- Patching / Server Updates
- phpMyAdmin
- Plesk
- Policies and Procedures
- Premium Spam Filtering
- Programming
- Ruby on Rails
- Search Engine Submission
- SharePoint 3
- SharePoint 2010
- SiteDesigner
- SmarterMail 3
- SmarterMail 4
- SmarterMail 5
- SmarterMail 6
- SmarterMail 7
- SmarterStats
- SmarterTrack
- SQL Server
- Secure Socket Layer (SSL)
- Uploading Your Website
- Video Tutorials
- Windows Server 2003
- Windows Server 2008
- Web Design
- WordPress
- Advanced Monitoring
- MediaWiki
- Enkompass
- Microsoft Outlook 2010
- Android
- Outlook Web Access
- Critical Availability Service
- NAS Data Transfer
- Customer Portal Demos
- Joomla
- Moodle
- Cloud Dedicated
- Gallery CMS
- phpBB
- Standard Monitoring
- Righteous Restore
- NAS (Network Attached Storage)
- Networking
- SmarterMail 8
- PCI Security Scan
- LinkTiger
- Windows Cloud VPS
- Linux Cloud VPS
- Linux VPS
- Windows VPS
- Hyper V
- ENSIM
- Alert Logic
- Webmin
- e107
- Vbulletin
- VPN
- Visual Vault
- Mozilla Thunderbird
- PyroCMS
- Active Directory
- Vmware Related
- Drupal
How do I set the primary IP address to display the default Apache page for my cPanel environment?
When cPanel is installed, the primary IP address for the server should display a default Apache page within a web browser. When you begin adding websites through cPanel, the first website added may start displaying for the primary IP address. This can be fixed to display the default Apache page by manually modifying the apache configuration file on the server.
NOTE: The following instructions involve updating configuration files directly on your server. If you are not familiar with updating configuration files, please contact support for assistance.
To restore the default Apache page, please follow these steps:
- Log into your cPanel web server via Secure Shell (SSH).
- Located the httpd.conf file using the following command:
located httpd.conf - Open the httpd config file found in step 2 using the following
command:
pico /usr/local/apache/conf/httpd.conf - Find the first VirtualHost container in the file. It will look
similar to the following: (xx.xx.xx.xx will be the primary IP
address of your server)
<VirtualHost xx.xx.xx.xx>
BytesLog domlogs/cptemp.safesecureweb.com-bytes_log
ServerName cptemp.safesecureweb.com
DocumentRoot /usr/local/apache/htdocs
</VirtualHost> - Above this section, add the following:
<VirtualHost xx.xx.xx.xx>
ServerAlias xx.xx.xx.xx
ServerAdmin admin@domain.com
DocumentRoot /usr/local/cpanel/htdocs
ServerName xx.xx.xx.xx
</VirtualHost> - Save and exit the file.
- Test the config file to ensure the text you entered is properly
formatted using the following command:
/etc/init.d/httpd configtest - Assuming the test returns the message Syntax
OK, restart Apache using the following command:
/etc/init.d/httpd restart
The restart of Apache will make your websites unavailable for a few seconds.
