Skip to content

Etat des configurations du service WEB

HaAymar edited this page Aug 20, 2022 · 13 revisions

Etat de fonctionnement

Toutes les fonctionnalités ont été configurées (cfr Lien vers l'analyse configuration Web).

Voici les fonctionnalités qui fonctionnent :

  • Redirection de la zone www et b2b dans le fichier de zone vers le serveur web
  • Création d'un container docker pour héberger le serveur Web
  • Installation d'Apache2 et le module PHP
  • Configuration d'apache2
  • Installation de MariaDB
  • Les sites www et b2b sont disponible et sécurisé via l'https

Configuration

  • Au niveau du fichier de zone on à du rajouter les lignes suivantes

www     IN      A       51.68.226.111
b2b     IN      A       51.68.226.111
  • Configuration des fichiers de config du site dans le dossier /etc/apache2/sites-availables:

<VirtualHost *:80>
        ServerAdmin aymar@students.ephec.be
        ServerName www.l1-4.ephec-ti.be
        DocumentRoot /var/www/html

    <Directory />
        Options FollowSymLinks
        AllowOverride all
    </Directory>

    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Order allow,deny
        allow from all
    </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

RewriteEngine on
RewriteCond %{SERVER_NAME} =www.l1-4.ephec-ti.be
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

b2b.conf

<VirtualHost *:80>
        #information sur le serveur et le nom de domaine
        ServerAdmin aymar@students.ephec.be
        ServerName b2b.l1-4.ephec-ti.be
        DocumentRoot /var/www/B2B/

    <Directory />
        Options FollowSymLinks
        AllowOverride all
    </Directory>

    <Directory /var/www/B2B/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Order allow,deny
        allow from all
        AddType application/x-httpd-php .php
    </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

RewriteEngine on
RewriteCond %{SERVER_NAME} =b2b.l1-4.ephec-ti.be
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

Sources:

Clone this wiki locally