How to add a subdomain in Plesk
Adding a subdomain in Plesk is a straightforward process. Subdomains are useful for organizing your site content and can be used for various purposes like hosting a blog, a forum, or a specific project related to your main website. Here’s how to add a subdomain in Plesk:
Step 1: Log into Plesk
- Access Plesk Panel:
- Open your web browser and navigate to your Plesk login URL, typically
https://yourserverip:8443
orhttps://yourdomain.com:8443
. - Enter your Plesk username and password to log in.
- Open your web browser and navigate to your Plesk login URL, typically
- Go to Websites & Domains:
- Once logged in, click on the “Websites & Domains” tab. This section allows you to manage all aspects of your website hosting.
Step 3: Add a New Subdomain
- Create a New Subdomain:
- Look for the “Add Subdomain” button. This is usually located towards the top of the “Websites & Domains” page.
- Click on “Add Subdomain” to start the process of creating a new subdomain.
Step 4: Configure Subdomain Settings
- Enter Subdomain Details:
- Subdomain Name: Enter the desired name for your subdomain. For example, if you enter ‘blog’, your subdomain will be ‘blog.yourdomain.com’.
- Parent Domain: Select the domain under which you want to create the subdomain from the dropdown menu.
- Document Root: Specify the directory where the subdomain’s files will be stored. By default, Plesk creates a new folder in your main domain’s directory, like ‘httpdocs/blog’.
- Hosting Settings (Optional):
- You can configure additional hosting settings such as preferred domain, web scripting languages, and security settings. These options are useful if you have specific requirements for your subdomain.
Step 5: Apply and Save Changes
- Create the Subdomain:
- Once you have configured the settings, click on the “OK” or “Create” button to create the subdomain.
- Plesk will set up the subdomain and its corresponding directory on your server.
Step 6: Verify the Subdomain
- Check the Subdomain:
- After creation, you should see the new subdomain listed in the “Websites & Domains” section.
- You can now upload your website files to the specified document root directory of the subdomain or install applications as needed.
Best Practices and Considerations
- DNS Settings: Ensure that your DNS settings are correctly configured to point the subdomain to your Plesk server.
- SSL Certificates: Consider securing your subdomain with an SSL certificate, especially if it will handle sensitive data.
- Backup Regularly: Regularly backup your subdomain’s data to prevent data loss.
- Subdomain Purpose: Clearly define the purpose of your subdomain and structure its content accordingly.
Conclusion
Adding a subdomain in Plesk is a simple process that can greatly enhance the organization and functionality of your website. By following these steps, you can easily set up a subdomain for any specific purpose, providing a segregated space for different sections of your online presence.