Question
How to enable or disable the feature of creating a temporary domain name provided by Plesk under Domains > Add Domain?
Answer
To enable the feature, specify the following in panel.ini
:
[techDomain]
subdomain.enabled = 1
To disable the feature, change the lines above to:
[techDomain]
subdomain.enabled = false
The panel.ini
file can be modified using one of the following methods:
via Plesk interface
-
Install the Panel.ini Editor from the Extensions' menu in Plesk.
-
Open Panel.ini Editor at Extensions > My Extensions.
-
In Panel.ini Editor, switch to the Editor tab. If the editor is empty, do the following:
4.1. Download the panel_ini.txt file.
4.2. Open the downloaded file and copy its content.
4.3. Paste the content into the editor. -
Edit the content and click Save.
via SSH
-
Connect to the server via SSH.
-
Сheck "panel.ini" availability:
# ls -l /usr/local/psa/admin/conf/panel.ini
-
If the file
/usr/local/psa/admin/conf/panel.ini
does not exist or is empty, create it by copying the sample configuration file/usr/local/psa/admin/conf/panel.ini
:# cp /usr/local/psa/admin/conf/panel.ini.sample /usr/local/psa/admin/conf/panel.ini
-
-
Open the file
/usr/local/psa/admin/conf/panel.ini
in any text editor. In this example, we are using the vi editor:# vi /usr/local/psa/admin/conf/panel.ini
or run the command below to open the file in an editor in Plesk Onyx:
# plesk conf panel.ini
-
Edit the
panel.ini
file.
via RDP
-
Connect to the server via RDP.
-
Open the file
panel.ini
located in the folder%plesk_dir%adminconf
(Just paste this path in Windows Explorer to open) in any text editor.- If the
panel.ini
file does not exist, create it by copying the sample configuration filepanel.ini.sample
.
- If the
-
Edit the
panel.ini
file.