Adding a subdomain in Plesk is a simple process. A subdomain allows you to create a new domain under your main domain (e.g., blog.example.com
or shop.example.com
). Here’s how to add a subdomain:
Step-by-Step Guide to Add a Subdomain in Plesk:
Step 1: Log in to Plesk
- Open your Plesk control panel by navigating to
https://your-domain.com:8443
(replaceyour-domain.com
with your actual domain or server IP address). - Enter your admin username and password to log in.
Step 2: Go to the "Websites & Domains" Section
- Once logged in, click on the "Websites & Domains" tab from the Plesk dashboard.
- This section will display all the domains and subdomains hosted on your server.
Step 3: Select the Domain for the Subdomain
- In the "Websites & Domains" section, find the main domain under which you want to create the subdomain (e.g.,
example.com
). - Click on "Add Subdomain" next to the domain name.
Step 4: Add the Subdomain
- Subdomain Name: In the "Subdomain name" field, enter the name of your subdomain (e.g., for
blog.example.com
, just enterblog
). - Document Root: The document root field is where the files for the subdomain will be stored. By default, Plesk will automatically generate a folder in the main domain’s
httpdocs
folder (e.g.,/httpdocs/blog
). You can change this if you want a custom location. - DNS Settings: Plesk will automatically create the necessary DNS records for the subdomain. Ensure that the DNS settings are set to allow the subdomain to resolve properly.
Step 5: Configure Additional Settings (Optional)
- SSL/TLS Support: If you want the subdomain to be secured with SSL, check the "SSL/TLS Support" box. You can configure an SSL certificate for the subdomain after creation.
- Mail Settings: If you want to enable email for the subdomain (e.g.,
[email protected]
), you can enable mail for the subdomain.
Step 6: Click "OK" to Create the Subdomain
- After filling out the details for the subdomain, click the "OK" or "Add Subdomain" button to create the subdomain.
- Plesk will now create the subdomain and set up the corresponding directory, DNS records, and other settings.
Step 7: Upload Files to the Subdomain (Optional)
- Once the subdomain is created, you can upload files to the subdomain's document root (e.g.,
/httpdocs/blog
). - You can upload files via FTP, Plesk's File Manager, or any other method you prefer.
Step 8: Test the Subdomain
- After the subdomain is created, it may take some time for DNS changes to propagate.
- Once DNS propagation is complete, test the subdomain by entering the URL (e.g.,
blog.example.com
) in your browser to make sure it resolves correctly.
By following these steps, you can easily create a subdomain in Plesk. Subdomains are useful for organizing content, creating separate sections of your website, or hosting entirely different sites under the same domain. Once the subdomain is created, you can manage it just like any other domain, including uploading files, setting up email, and securing it with SSL.