Home WebServer PanelcPanel How to configure Alias domain on aaPanel

How to configure Alias domain on aaPanel

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

In this article, AZDIGI will guide you through configuring the Alias domain on aaPanel simply. We will first find out what domain Alias is…

I. What is Domain Alias?

The Alias domain or Parked domain is different from the main domain but has the same structure as the main domain. For example, when we access the main domain or Alias/Parked domain, we all get the same content of the main domain, and only the domain name is different.

When to use domain Alias?

There are 2 cases where you should use Alias domain:

  • Want to run 2 or more domains for the same website.
  • When you want to use Email accounts with many different domains, emails sent to addresses under domain Alias will be forwarded to the Email address of the main domain.

Note: To be configured, the main and Alias domains must be added and successfully pointed to the server IP.

In this article, I will do it with 2 specific domains below:

  • The main domain: sitewp.tk
  • The Alias domain: blog.sitewp.tk

II. Configure Alias domain on aaPanel

Step 1: Determine the document root of the main domain

First, you need to log in to aaPanel and access the Website to see the Document root of the main domain.

Here my main domain is sitewp.tk and the Document root path is: /www/wwwroot/sitewp.tk. After determining the main domain’s Document root, you create the Alias domain according to step 2.

How to configure Alias domain on aaPanel

Step 2: Add Alias domain

At the aaPanel interface, you add a new domain and configure Alias as follows: Website => Add site.

How to configure Alias domain on aaPanel

Next, in the setup section, you add the domain and set it up as follows:

How to configure Alias domain on aaPanel

Step 3: Add configuration

You access the Document root path of the website; in this example, the path is (/www/wwwroot/sitewp.tk), you open the file wp-config.php and add the content below:

How to configure Alias domain on aaPanel
AZDIGI Tutorial
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
    

Add content and Save.

How to configure Alias domain on aaPanel

Next, you need to configure the URL rewrite for the Alias domain as shown below:

How to configure Alias domain on aaPanel

Thus, the configuration steps are completed. Then you can access the browser to check your results.

Here are my results after configuration:

CleanShot 2021 12 14 at 16.23.13 1

III. Summary

In this article, AZDIGI has shown you how to install and operate domain Alias; using Domain Alias will be very suitable for you who need to use and run multiple websites with the same content as the main domain.

Basically, the function of the Alias domain is the same, but depending on what control panel you are using, the installation interface will be different. Hope this article was helpful and made it easy for you to set up one.

See more useful articles about aaPanel at the following link:

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign