Home WebServer PanelaaPanel How to change Hostname for aaPanel

How to change Hostname for aaPanel

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

Changing Hostname for aaPanel with 3 steps.

Có thể bạn sẽ thích

Introduction

Surely you are no stranger to aaPanel control, this is a free control panel that is easy to use, compact and optimal today. In addition to the features that support the website’s operation, aaPanel also offers many other cool features that you will find interesting when using it.

AZDIGI will introduce to you in this article the feature of changing the Hostname for aaPanel directly from the interface of aaPanel. When accessing aaPanel, we will default follow the link http://IP-Server:Port/, and after configuring Hostname, we will use Hostname, for example, https://panel.dantrungkien.info:Port to access.

Implementation Guide

Step 1: Create a hostname

First, you need to access your aaPanel to create a Domain or Subdomain to set as Hostname for aaPanel. Here I will create a Subdomain panel.damtrungkien.info and the steps are as follows:

Note: Domain or Subdomain must be pointed to the server IP.

To add a new Domain, at the aaPanel interface, go to Website (1) >> Add site (2) >> Enter the website name in the Domain name section (3) >> Click to install SSL and automatically redirect HTTP => HTTPS (4) >> Submit (5).

How to change Hostname for aaPanel

Step 2: Set up SSL for Hostname

To set up the SSL certificate of the newly installed Hostname to be used by the panel, you need to perform the following steps:

Note: Replace panel.damtrungkien.info with your domain/subdomain name.

AZDIGI Tutorial
cp -r /www/server/panel/ssl /www/server/panel/ssl.bak
rm -f /www/server/panel/ssl/*
ln -s /www/server/panel/vhost/cert/panel.damtrungkien.info/fullchain.pem /www/server/panel/ssl/certificate.pem
ln -s /www/server/panel/vhost/cert/panel.damtrungkien.info/privkey.pem /www/server/panel/ssl/privateKey.pem
    

Command annotation:

  • Command 1: Backup Panel’s ssl folder to ssl.bak
  • Command 2: Delete all content inside ssl folder
  • Commands 3 – 4: Create a symlink for SSL Domain/Subdomain to SSL of panel.
How to change Hostname for aaPanel

Step 3: Set Hostname for Panel

To set up Hostname for Panel, you can use the following 2 methods:

  • Method 1: Manipulating from the aaPanel interface

At the aaPanel interface, go to Setting > > enter the hostname in the Domain section > > Panel SSL .

How to change Hostname for aaPanel

  • Method 2: Manipulate by command line
AZDIGI Tutorial
echo "panel.damtrungkien.info" > /www/server/panel/data/domain.conf
echo "True" > /www/server/panel/data/ssl.pl
bt reload
    

If the setup is successful, you will be able to access aaPanel through the Hostname as shown below:

How to change Hostname for aaPanel

So AZDIGI has completed the steps to create and set up Hostname for aaPanel. Hopefully, this article is helpful to you. Wishing you success!

You can refer to other user manuals at the link below

If you need support, 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