Create a subdomain

What is a subdomain?

A subdomain is an additional section within an existing main domain. Examples include www.mydomain.ch, shop.mydomain.ch or blog.mydomain.ch.

A subdomain can point to its own content, applications, directories or website sections.

 

Requirements

  • The domain must be assigned to active hosting.
  • You need access to the Web & Mail Control Panel.

Further information on assigning a domain to web hosting:

https://www.green.ch/en/reassign-a-domain-with-a-hosting-plan

Further information on accessing the Web & Mail Control Panel:

https://www.green.ch/en/accessing-the-control-panel

 

Create a subdomain

  1. Log in to my.green.ch with your MY username and password.
  2. Open «All Domains».
  3. For the desired domain, click the arrow icon to the right of the web hosting or mail hosting name.
  4. In the Web & Mail Control Panel, open the «Domains» section.
  5. Open «Subdomains».
  6. Click «CREATE SUBDOMAIN».
  7. Enter the desired name of the subdomain.
  8. Select the desired document root.
  9. Save the subdomain.

 

Check the document root

The document root determines the directory from which the subdomain's content is loaded.

In the Web & Mail Control Panel, open the «Domains» section. In the overview, the corresponding document root is displayed to the right of each domain.

To check the assignment in more detail, select «Actions» for the desired domain and then «Edit Domain». The document root is displayed in the lower section.

Further information on the document root:

https://www.green.ch/en/change-the-document-root

 

DNS and subdomains

Subdomains can use their own DNS records and point to different content or services.

A wildcard record () is often used for the automatic resolution of subdomains. If this record is missing, an additional type A DNS record may be required for the relevant subdomain.

Further information on nameservers and DNS zones:

https://www.green.ch/en/nameservers-and-dns-explained

Further information on the DNS zone at Green:

https://www.green.ch/en/dns-zone-at-green

Further information on DNS management at Green:

https://www.green.ch/en/manage-dns-records

 

SSL certificates for subdomains

If a subdomain is to be accessed via HTTPS, a suitable SSL certificate is required.

SSL certificates for subdomains currently need to be ordered separately through Support. By default, SSL can only be ordered for the main domain. The certificate will then also cover existing subdomains.

Note: Create the required subdomains before ordering the SSL certificate. Then contact Support so that the certificate can be ordered for the subdomains.

Further information on SSL for subdomains:

https://www.green.ch/en/ssl-on-subdomains

 

If the subdomain is not accessible

  1. Check whether the domain is assigned to active hosting.
  2. Check whether the subdomain is listed in the Web & Mail Control Panel.
  3. Check the assigned document root.
  4. Check the domain's DNS zone.
  5. Check whether a wildcard record () or a dedicated type A DNS record exists for the subdomain.
  6. When accessing the subdomain via HTTPS, check whether a suitable SSL certificate is available.

Note: If the subdomain is still not accessible despite being created correctly and having the correct DNS configuration, additional technical processing may be required. In this case, contact Support.

 

Delete a subdomain

Subdomains listed in the «Subdomains» section can normally be created and deleted in the Web & Mail Control Panel.

  1. In the Web & Mail Control Panel, open the «Domains» section.
  2. Open «Subdomains».
  3. Select «Actions» for the relevant subdomain.
  4. Select «Delete Subdomain».

In some hosting environments that have been migrated to a new platform, existing subdomains may technically be managed as standalone domains. Such entries cannot be removed directly in the Web & Mail Control Panel.

Note: Before deleting the subdomain, check whether its document root still contains any required files or applications. If the subdomain is managed as a standalone domain in the Control Panel and cannot be deleted, contact Support.

 

Related topics

Further information on the settings of a domain connected to a hosting package:

https://www.green.ch/en/domain-settings-domain-connected-to-hosting-package

 

Web & Mail Control Panel

[Translate to English:] my.green.ch Kundenportal
[Translate to English:] Web & Mail Control Panel im my.green.ch Kundenbereich.
[Translate to English:] Web & Mail Control Panel - Übersicht
[Translate to English:] Web & Mail Control Panel - Übersicht
[Translate to English:] Web & Mail Control Panel - Grafische Benutzeroberfläche
[Translate to English:] Web & Mail Control Panel - Grafische Benutzeroberfläche
[Translate to English:] Web & Mail Control Panel - Domainverwaltung
[Translate to English:] Web & Mail Control Panel - Domainverwaltung
[Translate to English:] Web & Mail Control Panel - Subdomain erstellen
[Translate to English:] Web & Mail Control Panel - Subdomain erstellen
Subdomain Menüauswahl

Um Ihre bereits erstellte Subdomain zu löschen, klicken Sie auf den grauen Button Aktionen. In der Auswahl wählen Sie Subdomain löschen.

[Translate to English:] Subdomain löschen - Warnung

Bestätigen Sie die Löschung in dem Sie auf dem roten Button Subdomain löschen klicken.

[Translate to English:] DNS-Zonenverwaltung Wildcard-Record
[Translate to English:] Wildcard DNS-Eintrag