Skip to content

Websites ​

This page covers the Websites menu and the website details page: document root, Force HTTPS, aliases and parked domains, redirects, SSL, IP Blocker, hotlink protection, MIME types, directory protection, leech protection, directory listing, error pages, logs, statistics, changing the primary domain, and deleting a website.

A website in MoorCP is one virtual host owned by one account. A website can have several domains: the primary domain, addons, subdomains, and aliases. The vhost configuration is built from a neutral site model, then rendered for each server's web server mode.

Website list ​

Open Websites in the Management group.

Summary cards ​

CardContents
Total websitesNumber of websites and domains, including aliases and addons.
Expired SSLWebsites with an expired certificate, and those expiring within 14 days.
Without SSLWebsites without a certificate, plus the number of websites with Force HTTPS and the static proxy.

When a certificate has expired or a website failed to provision, a warning banner shows above the table.

Searching and filtering ​

  • Search by domain or account name.
  • Filter by account, server or Web server mode, PHP version, and SSL status: Valid, Expires ≤ 14 days, Expires ≤ 7 days, Expired, or No certificate.

Each row's action menu has Open website, Issue SSL, and Open account. For administrators and technicians, the menu also has Change primary domain on the primary-domain website, or Delete website on addon and subdomain websites. Click Manage to open the website details.

The SSL column shows the certificate status. Below it, the result of the latest SSL request shows when it needs attention:

NoteMeaning
SSL request in progress…A Let's Encrypt request is being processed.
Last SSL request failedThe latest request failed, with its date and the ACME error message. The note stays after the notification is gone.
Not covered (no DNS record)The certificate was issued, but the listed aliases have no DNS record and were skipped.

Below the table are the Parked domains card (see Parked domains), the Web server modes summary (mode per server), and PHP versions in use.

A new website stays Provisioning until the server finishes the job. On accounts with millions of files (e.g. large cPanel imports) the panel waits up to 30 minutes for it, so do not retry a website that is still provisioning.

Adding a website ​

  1. Click Add website.
  2. Choose the Account.
  3. Enter the Domain or subdomain, e.g. blog.myshop.com or othershop.com.
  4. Enter a Document root (optional) if needed. The path is inside the account home. Empty uses the default folder for that domain.
  5. Click Add website. Provisioning runs as a job.

The panel determines the domain type itself:

TypeRulePackage quota
primarySame as the account's primary domain.Domains
subdomainUnder the primary domain, or under another domain owned by the account.Subdomains
addonAnything else.Domains

When the package quota is full, creation is rejected. DNS records are created automatically when the domain uses the panel's nameservers.

A www. alias is added automatically only for apex domains, e.g. othershop.com or othershop.co.uk. A subdomain such as blog.myshop.com does not get www.blog.myshop.com, because that name usually does not exist in DNS and makes SSL issuance fail. Through the API, withWww in POST /v1/websites can still force it.

The primary-domain website of a new account is created automatically once the account is active. See Accounts › Creating an account.

WARNING

A domain already owned by another account, or under a domain owned by another account, is rejected. See Domains and DNS.

Website details ​

The header shows the domain, the status (Active or Failed), the Manage settings button, and Apply vhost to rewrite the vhost configuration on the server.

Main tabs:

TabContents
OverviewWebsite info, server, web server mode, PHP, static proxy, and Recent access summary (requests in the last 7 days).
Domains & aliasesAll the website's domains and aliases.
SSL & HTTPSCertificates per domain, issuance, CSR, custom certificates, and Force HTTPS.
PHP ConfigurationDocument root, PHP version, Force HTTPS, and static proxy.
LogsAccess, error, and PHP error logs.
StatisticsVisitor statistics from the access logs.

Extra tabs open from the Manage settings menu: Redirects, Protection & listing, IP Blocker, hotlink & MIME, Error pages, and WAF. The same menu also has Open account, Change primary domain (only on an active primary-domain website), and Delete website.

Until the website is active, tabs other than Overview show "Available once the website is active."

Website settings ​

Open the PHP Configuration tab (or Manage settings › Edit configuration).

FieldDescription
Document rootPath inside the account home, e.g. sites/blog/public. The folder is created if missing. Files in the old docroot are not moved.
PHP versionThe website's PHP version, or Server default. On servers with CloudLinux PHP Selector, the version is chosen per account in the account's PHP tab.
Force HTTPS (redirect HTTP to HTTPS)Redirects HTTP to HTTPS once a certificate is installed.
Static file proxyNginx serves static files in nginx-proxy mode.

Click Save and apply. The change rewrites the vhost on the server as a job.

The document root is rejected when it:

  • is outside the home, or is the home itself;
  • is under an account system folder: ~/mail, ~/tmp, ~/logs, ~/.htpasswds, ~/.ssh, ~/.trash, ~/.cagefs, or ~/etc;
  • contains configuration characters such as quotes, ;, $, or braces;
  • goes through a symlink.

If the server rejects the change, the job fails and the old settings are restored. The website keeps running with the old vhost.

Domains and aliases ​

An alias (parked domain) shows the same site on another domain.

  1. Open the Domains & aliases tab.
  2. Click Add domain.
  3. Enter the alias domain and click Add.
  4. Reissue SSL so the certificate covers the new alias.

Rules:

  • At most 50 domains per website.
  • If the domain is not hosted on the panel yet, a DNS zone is created. Point that domain's nameservers to the panel's nameservers.
  • To remove an alias, choose Remove alias in the domain row's action menu. The primary domain, addons, and subdomains cannot be removed here.

For a subdomain with different content, create a new website (see Adding a website), not an alias.

Parked domains ​

The Parked domains card below the website list shows the parked domains (cPanel parked domains / aliases) of all websites, filtered like the table above (account, server, SSL, PHP, search), 10 per page. A www. name parked together with a domain shows as + www.<domain>. Columns: Parked domain, Shows (the website, or a Redirect label with the target and status code), Account, and SSL.

To park a domain:

  1. Click Park a domain.
  2. Choose the website in Shows website.
  3. Enter the Domain and leave Also park www.<domain> ticked to park the www name too.
  4. Click Park domain, then issue SSL for the website again so the certificate covers it.

A DNS zone is created for the account when the domain is not hosted in the panel yet. The package's Parked domains quota applies (see Packages); the www name parked with a domain does not count.

Unpark removes the domain and its www name. DNS and email are not changed.

Redirect sends every request for the parked domain (and its www name) to another URL instead of the website:

  • Type: Permanent (301) or Temporary (302). The API also accepts 307 and 308 (PUT /v1/websites/{id}/aliases/{domain}/forward).
  • Keep the path passes the path and query string on.
  • The target must be a full http(s):// URL without spaces, query string, %, $, quotes, or parentheses, and cannot be the domain itself.
  • /.well-known/acme-challenge/ is not redirected, so the domain keeps its Let's Encrypt certificate.

Email for a parked domain (mail to x@parked.com delivered to x@main.com) is set in the account's Email section, column Forward to. See Accounts. Clients manage the same things from the client panel, see Parked domains and redirects.

Redirects ​

Open Manage settings › Redirects.

  1. Click Add redirect.
  2. Enter the From path, e.g. /old.
  3. Enter To (URL or path), e.g. /new or https://othershop.com/promo.
  4. Choose the Type: 301 permanent, 302 temporary, 307, or 308.
  5. Save.

Rules:

  • A redirect applies to every domain of the website.
  • The rest of the path and the query string are passed on: /old/page?x=1 becomes /new/page?x=1.
  • from must start with /. to is an http(s):// URL or a path, without ?, #, $, spaces, or quotes.
  • Redirects that would loop are rejected, e.g. / to /new or /a to /a/b. Duplicate redirects are also rejected.
  • At most 100 redirects per website.

SSL and HTTPS ​

The SSL & HTTPS tab shows one row per domain, with the Issuer, Valid until, and status.

Automatic Let's Encrypt ​

  1. Click Issue Let's Encrypt. From the website list, use Issue SSL.
  2. Review the list of domains. All the website's domains are validated over HTTP.
  3. Click Issue certificate.

Before ordering the certificate, the agent checks DNS for every alias. Aliases that do not exist in DNS (NXDOMAIN, e.g. www. of a subdomain) are skipped, so the primary domain still gets its certificate. The primary domain is always requested. The skipped aliases are listed in the job result (skipped) and in the Not covered (no DNS record) note in the SSL column.

The result of the latest request (in progress, failed with the ACME error, or skipped aliases) also shows at the top of the SSL & HTTPS tab.

The agent renews Let's Encrypt certificates automatically 30 days before they expire. If a renewal fails, the Automatic renewal failed banner shows on this tab and the ssl_renew_failed alert is sent to the notification channels. The alert resolves itself once a renewal succeeds.

When webmail is installed on the server, the certificate also requests webmail.<domain> for the primary domain, addons, and aliases whose webmail DNS record already points to this server, so clients can open webmail at https://webmail.<domain>. Names that point elsewhere (e.g. a record still at the old cPanel server, or behind the Cloudflare proxy) are skipped. If the request fails because of a webmail name, it is retried without those names, so the website certificate is not affected. See Mail server.

Wildcard (DNS-01) ​

In the issue dialog, check Also cover *.domain (wildcard). The wildcard name is validated over DNS-01: the panel adds an _acme-challenge TXT record to the zone and removes it after validation.

Requirements:

  • the primary domain's zone is hosted on the panel's DNS;
  • the domain is delegated to the panel's nameservers at the registrar, because the CA checks the TXT record through public DNS.

Wildcard renewal also uses DNS-01 automatically.

Custom certificates and CSR ​

For a certificate from a commercial CA:

  1. Click Generate CSR.
  2. Fill in Organization (optional) and Country code, then click Generate. The CSR covers every domain of the website. The private key is created and stays on the server; the panel never receives it.
  3. Copy the CSR and send it to the CA.
  4. Once you have the certificate, click Install certificate.
  5. Paste the Certificate with intermediate chain (PEM). Leave Private key empty because the key is already on the server.
  6. Click Install.

If you already have a certificate and key pair from elsewhere, also fill in Private key (PEM, optional).

Force HTTPS ​

The HTTPS card below the certificate list has the Force HTTPS (redirect HTTP to HTTPS) checkbox. Turn it on once a certificate is installed.

Open Manage settings › IP Blocker, hotlink & MIME. The settings apply in every web server mode (OpenLiteSpeed, Nginx, Apache, Nginx proxy).

  • IP Blocker: Blocked addresses, one IPv4/IPv6 address or CIDR range per line, at most 200. These visitors get 403 on every domain of the website. In Nginx proxy mode the block is applied in the front Nginx. Behind Cloudflare the server sees Cloudflare's addresses unless the real IP is forwarded.
  • Hotlink protection: Turn on hotlink protection, Protected file extensions (default jpg, jpeg, png, gif, webp, avif, bmp, svg, mp4, webm, mp3), Other allowed domains (subdomains included), and Also block requests without a referrer. Other sites get 403 for those files.
  • MIME types: Extra MIME types, one extension type/subtype per line, e.g. glb model/gltf-binary, at most 50. Types that would run files as scripts (PHP, CGI, and similar) are refused.

Saving rewrites the vhost as a job. Through the API: PUT /v1/websites/{id}/access and PUT /v1/websites/{id}/mime-types. Clients have the same forms under Website › Manage › Access & MIME.

Directory protection ​

Open Manage settings › Protection & listing. Protection uses Basic authentication from .htaccess with the same layout as cPanel, so migrated .htpasswd files keep working in every web server mode.

  1. Click Protect a directory.
  2. Enter the Directory relative to the document root, e.g. admin. Empty = the whole site.
  3. Enter the Realm (the area name shown in the login prompt).
  4. Add users with Add user: a username and a password of 8–72 characters.
  5. Save.

Notes:

  • When editing, users without a new password keep their old password (unchanged).
  • Users removed from the list lose access.
  • Protection from a migration or a manual edit is marked Migrated / manual. Saving it moves the protection into the panel-managed block without changing passwords.
  • Remove deletes the protection and the panel's password file.

Leech protection ​

Click Leech on a protected directory to detect a username used from too many IP addresses within two hours (a shared or leaked password). Settings: Maximum IP addresses per user in 2 hours (1 to 1000, default 4; IPv6 in one /64 counts once), Disable the user when the limit is passed, and Email the account contact (sent through the client email notification channel). Detection reads the access logs every few minutes in every web server mode. A disabled user is commented out in the password file and gets 401 until given a new password. The dialog lists Recent detections.

The rules are stored on the server and do not follow the account when it moves to another server. There is no redirect URL for detected users.

Directory listing (Index Manager) ​

The Directory listing (Index Manager) card on the same tab turns file listing on or off per folder: Show file list, Hide file list, or Reset to follow the parent folder. Listing is off by default, a setting also applies to subfolders, and folders up to 4 levels below the document root can be set. It is written as an Options +/-Indexes block in that folder's .htaccess and converted to autoindex (Nginx) or autoIndex (OpenLiteSpeed). In OpenLiteSpeed the listing runs as the account's own lsphp, and hidden folders answer 404 instead of 403.

In Nginx and OpenLiteSpeed modes, the .htaccess converter now applies the access of a parent folder (password, deny all, listing) to every subfolder that has its own .htaccess, as Apache does.

Error pages ​

Open Manage settings › Error pages. Enter the path of a page in the document root for codes 400, 401, 403, 404, 500, or 502, e.g. /404.html, then save.

  • The path must start with / and must not contain ...
  • Code 503 is used by the account suspension page, so it cannot be changed.
  • Error pages that an application generates itself (e.g. WordPress 404) are not replaced.

Logs ​

The Logs tab shows the latest lines of one log file.

OptionDescription
Log fileAccess, error, and PHP errors logs. The available choices depend on the web server mode.
LinesNumber of latest lines, up to 2000.
FilterText that must appear in the line.

Download raw log downloads the whole current log, or the archive of an earlier day (usually .gz) chosen in Day.

Web server logs are rotated daily and kept for 35 days. The PHP error log is the account's ~/logs/php-error.log and counts toward the account's disk quota.

Statistics ​

The Statistics tab shows the same visitor statistics as the client panel's Statistics menu: visitors, visits, page views, bounce rate, bandwidth, errors, daily and hourly charts, breakdowns (pages, sources, audience, bots, technical), a Realtime view, the account's Account visits this month against the package visit limit, and the optional JavaScript beacon. Choose the Period: Today, Last 7 days, Last 30 days, This month, Last 90 days, or Last 12 months.

The agent on each server reads the access logs every 5 minutes and the panel pulls the daily results, so reports are read from the panel database and do not load the server. Breakdowns are kept for 90 days, daily totals for 25 months. Countries need the GeoLite2 database that CrowdSec downloads on the server. Every field and option is explained in Visitor statistics.

API: GET /v1/websites/{id}/statistics, GET /v1/websites/{id}/statistics/live, GET/PUT /v1/websites/{id}/statistics/beacon, and GET /v1/accounts/{id}/visits. The older GET /v1/websites/{id}/stats (computed directly from the logs, 1 to 31 days) is still available.

Health Inspector ​

The website health check (DNS, HTTP/HTTPS, TLS, PHP errors, 5xx errors, and limits) is in the client panel. To see it as an administrator, open the account and click Login as. See Website health.

Changing the primary domain ​

You can change an account's primary domain, like Modify Account in cPanel. Only administrators and technicians can do this, and only on an active primary-domain website.

  1. In the website list, open the action menu of the primary-domain website row, or in the website details, open Manage settings.
  2. Choose Change primary domain.
  3. Enter the New primary domain, e.g. newshop.com.
  4. Click Change domain.

What happens:

  • The account's primary domain and its main website's domain are replaced. The www.<old> alias becomes www.<new> when the new domain is an apex domain. Other aliases, addons, and subdomains stay.
  • The vhost is reapplied through a job. If the website had a Let's Encrypt certificate, a new one is requested right after.
  • The old domain's document root, files, databases, email, and DNS zone are not touched. A zone for the new domain is created when the panel's DNS is enabled.
  • The change is recorded in the audit log as account.primary_domain.

The request is rejected when the new domain is the same as the old one, is a subdomain of the current primary domain, or is already used by another account or by another website of this account. In the last case, delete that website first.

WARNING

The domain in the billing system does not change. Update it in billing. Also point the new domain's DNS to this server.

Clients can change their own primary domain from the client panel (pencil button on the primary-domain website row). Through the API: POST /v1/accounts/{id}/primary-domain with the body {"domain": "newshop.com"}.

Deleting a website ​

Addon and subdomain websites can be deleted from two places:

  • From the website list: row action menu › Delete website, then click Delete website in the confirmation dialog.
  • From the website details: Manage settings › Delete website, type the domain name to confirm, then click Delete website.

The vhost and all the website's domains are removed, and the site stops serving. Deletion runs as a website.delete job.

DANGER

Deleting a website cannot be undone. Files in the document root, databases, email, and the DNS zone are not deleted; clean them up separately if needed.

The primary-domain website of an account cannot be deleted. Change its domain (see Changing the primary domain), or terminate the account if you really need to. See Accounts.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.