Tout d'abord on crée le dossier : mkdir /var/www/domain.org
Puis nous allons créer le fichier de configuration :
cd /etc/apache2/sites-available/
nano domain.org.conf
et on va ajouter ceci :
<VirtualHost *:80>
ServerName domain.org
ServerAlias domain.org
DocumentRoot /var/www/domain.org
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/domain.org/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
ensuite il faut activer le fichier :
a2ensite domain.org
et redémarrer apache :
service apache2 reload
Voila j'espère que ce tuto vous a plu !
Pour toutes éventuelles questions, n'hésitez pas à passer sur Discord.
L'équipe InovaPerf.