Bonjour,
après beaucoup de tuto et de recherche, je m’en remet a vous !
En partant principalement de ce tuto:
https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-20-04-fr
J'ai donc installer apache2 , crer un dossier your_domain :
sudo mkdir /var/www/your_domain
puis
sudo chown -R $USER:$USER /var/www/your_domain
et enfin les droits
sudo chmod -R 755 /var/www/your_domain
ensuite creer mon fichier html :
sudo nano /var/www/your_domain/index.html
avec a l’intérieure :
<html>
<head>
<title>Welcome to Your_domain!</title>
</head>
<body>
<h1>Success! The your_domain virtual host is working!</h1>
</body>
</html>
apres j'ai creer mon fichier d configuration :
sudo nano /etc/apache2/sites-available/your_domain.conf
avec dedans :
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName your_domain
ServerAlias www.your_domain
DocumentRoot /var/www/your_domain
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
ensuite :
sudo a2ensite your_domain.conf
et arriver au test :
sudo apache2ctl configtest
j'ai l'erreur suivante :
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 2a01:e34:ed62:2550:20db:3d3d:c5aa:ad1e. Set the 'ServerName' directive globally to suppress this message
Syntax OK
et bien sur je n’accède pas a mon site depuis mon navigateur
Voila après pas mal d'essai de modification de divers fichiers , rien n'y fait !
merci pour votre aide