How Your Server Manages Domains, Virtual Hosts, Server Type Detection, Interface Locks, and WHM Keyboard Shortcuts

How Your Server Manages Domains, Virtual Hosts, Server Type Detection, Interface Locks, and WHM Keyboard Shortcuts

cPanel virtual hosts,WHM server typeWHM keyboard shortcuts

~3 min read · Updated Feb 17, 2026

1. How cPanel Handles Domains and Virtual Hosts


Virtual hosts, or vhosts, allow a server to host multiple domains on a single IP address. This enables users to receive different content from different hostnames even when they share the same IP.


1.1 Simplified Hosting Workflow


  • The user requests content from a hostname such as example.com.
  • The hostname resolves to an IP address.
  • The user connects to that IP and retrieves the content.

1.2 How Virtual Hosting Actually Works


Multiple hostnames can resolve to the same IP. To ensure the correct content is served, the browser includes the hostname in the HTTP request. This allows the server to maintain multiple virtual hosts on a single IP.


1.3 How cPanel Manages Virtual Hosts


Each cPanel account includes one primary vhost containing:


  • The primary domain
  • The www. version of the primary domain

1.4 Domain Types in cPanel


Aliases


A hostname that serves the same content as the primary domain. Example:


anotherexample.comexample.com


Subdomains


Hostnames like sub.example.com that exist on separate virtual hosts.


Addon Domains


Independent domains that cPanel maps through a subdomain and alias combination.


1.5 SSL‑Encrypted Content


For SSL content, cPanel creates a separate vhost with SSL parameters. Both SSL and non‑SSL vhosts share the same document root.


Important: Each vhost supports only one SSL certificate.


2. Identify Server Type (cPanel or WP Squared)


You can determine whether your server runs cPanel & WHM or WP Squared using the /usr/local/cpanel/server.type file.


Command:


readlink /usr/local/cpanel/server.type

Possible Outputs:


  • cpanel — The server runs cPanel & WHM
  • wp2 — The server runs WP Squared

3. Interface Lock Scripts in WHM


The Interface Lock System prevents users from modifying certain features during cPanel & WHM upgrades. Locks can be global or user‑specific.


3.1 Lock Names


  • UpdateHostname — Prevents hostname changes during updates
  • User‑level locks — Restrict access to Horde and CalDAV/CardDAV

3.2 Available Scripts


Check if an interface is locked:


/usr/local/cpanel/bin/is_interface_locked

Lock an interface:


/usr/local/cpanel/bin/lock_interface

Unlock an interface:


/usr/local/cpanel/bin/unlock_interface

Warning: Only use these scripts when instructed by cPanel Support.


4. Keyboard Shortcuts in WHM


WHM includes keyboard shortcuts to help administrators navigate the interface more efficiently.


4.1 Global Shortcuts


  • Shift + 8 — Toggle Expand/Collapse All
  • Ctrl + / — Move cursor to Search box

4.2 Left Navigation Menu Shortcuts


  • — Move up
  • — Move down
  • — Collapse category (LTR)
  • — Expand category (LTR)
  • Enter — Expand/collapse or open item
  • Tab — Move down
  • Shift + Tab — Move up

4.3 Enabling Tab Navigation on macOS


Instructions are available for Firefox, Safari, and Chrome to enable full keyboard navigation.


Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue