How do I create a sub-domain on a dedicated VPS server?

Procédure

What is a sub-domain?

A sub-domain is always composed as follows:

Prefix + Domain name

example: boutique.lws.fr

Sub-domains are very useful for dividing a site into several distinct sections, each with a clearly defined address. They also avoid having to use folder names that are too long.

For example, http://forum.lws.fr is a sub-domain of http://lws.fr or http://boutique.lws.fr is also a sub-domain of http://lws.fr

How do I add a sub-domain to a dedicated VPS server using ISPConfig?

In this article, we will look at how to redirect a sub-domain to a directory on the main site. In our example, we are going to point the sub-domain boutique.monsite.com to the boutique directory of the site monsite.com.

Your panel will write the rewriting rules for the Web server (Apache). Once you're logged in, in the Sites tab, select the Sub-domain heading, then New sub-domain:

How do I create a sub-domain on a dedicated VPS server?

Fill in the form with the name of the directory you want to use (here boutique) and the main site (here monsite.com):

How do I create a sub-domain on a dedicated VPS server?

The types of redirections correspond to the operations that can be performed in an .htacess file.

You can also insert a sub-domain as a website.

Once you have done this, you must indicate that the subdomains point to your server.


How do you link your subdomains to your dedicated VPS server?

1. Go to your LWS panel customer area

2. Click on the "Manage" button to the right of your domain.

3. Click on DNS Zone

How do I create a sub-domain on a dedicated VPS server?

5. Fill in the information as follows and click on "Add":

  • Zone type : A
  • Name : this is the sub-domain (if the sub-domain is test.domaine.com, enter only"test")
  • Value: indicate the IP of your VPS

How do I create a sub-domain on a dedicated VPS server?

Procedure in video


help.lws.net/a/315
Was this article helpful?

Yes

No

Read 44 994 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

Questions about the article 4

Ask a question
Thuret
29 Nov 2022
Comment j'accède aux fichiers de mon sous domaine crée Merci
fabrice-LWS Official answer
7 Dec 2022
Bonjour, vous avez la possibilité d'accéder aux fichiers rattachés à vos sous domaines en utilisant les informations de connexion FTP à votre formule. Le répertoire rattaché à votre sous-domaine doit porter le même nom que votre sous-domaine.
Was this answer helpful?
Florent
19 Oct 2023
Comment j'accède aux fichiers de mon sous domaine.
Benjamin-LWS Official answer
20 Oct 2023

Bonjour,

Sur nos formules mutualisées LWS Panel et cPanel, les fichiers des sous-domaines sont généralement disposés à la racine de votre hébergement dans un dossier ayant le nom de votre sous-domaine.

htdocs>sous.domaine.fr>les-fichiers

Je vous remercie de votre attention et reste à votre disposition pour toute autre question ou complément d'information.

Nous vous invitons à contacter notre service support à travers votre espace client, afin de vous apporter une aide si vous rencontrez des difficultés quelconque.(Contacter le support LWS)

Cordialement, L'équipe LWS 

Was this answer helpful?
cheikhma
4 Feb 2024
Comment j'accède aux fichiers de mon sous domaine créé et pointé à mon vps car je ne trouve pas le dossier du sous domaine créé
Jordan-LWS Official answer
9 Feb 2024

Bonjour,

Je vous remercie pour votre retour.

Comme il est indiqué dans la documentation, le répertoire de votre sous domaine est à renseigner au moment de l'installation de votre sous-domaine, effectivement, il s'agit du champ "chemin de redirection"

Si toutefois vous n'êtes pas en mesure de trouver ce que vous cherchez, je vous invite à contacter le service d'assistance technique par le biais de votre espace client.

Je vous remercie pour votre attention et reste à votre disposition pour toute autre question ou complément d'information.

Cordialement, L'équipe LWS.

Was this answer helpful?
moi
6 Oct 2025
faites de MAJ récentes , cette vidéo et bien d'autres sont très vieilles.
Jordan-LWS Official answer
7 Oct 2025

Bonjour,

Je vous remercie pour votre message.

Pour le moment, aucune mise à jour de ce type n’est prévue. Cependant, le contenu textuel est bien à jour et reflète les informations actuelles.

Je vous remercie pour votre attention et reste à votre disposition pour toute autre question ou complément d'information.

Cordialement, L'équipe LWS 

Was this answer helpful?

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.