Outils pour utilisateurs

Outils du site


yunohost_un_container_lxc

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révisionLes deux révisions suivantes
yunohost_un_container_lxc [2021/01/04 13:36] – [Apache vhost proxy vers le container] Benjamin Labomediayunohost_un_container_lxc [2021/05/05 21:43] Benjamin Labomedia
Ligne 65: Ligne 65:
 <file php ynh.futuretic.fr-le-ssl.conf> <file php ynh.futuretic.fr-le-ssl.conf>
 <IfModule mod_ssl.c> <IfModule mod_ssl.c>
 +
         <VirtualHost *:443>         <VirtualHost *:443>
 +
                 ServerAdmin     tech@futuretic.fr                 ServerAdmin     tech@futuretic.fr
                 ServerName      ynh.futuretic.fr                 ServerName      ynh.futuretic.fr
-                +
                 SSLEngine on                 SSLEngine on
                 SSLProxyEngine On                 SSLProxyEngine On
 + # ajout suite a default ssl handshake et suite à AH01097: pass request body failed
 + SSLProxyVerify none
 + SSLProxyCheckPeerCN off
 + SSLProxyCheckPeerName off
 + SSLProxyCheckPeerExpire off
 +
                 SSLCertificateFile /etc/letsencrypt/live/ynh.futuretic.fr/fullchain.pem                 SSLCertificateFile /etc/letsencrypt/live/ynh.futuretic.fr/fullchain.pem
                 SSLCertificateKeyFile /etc/letsencrypt/live/ynh.futuretic.fr/privkey.pem                 SSLCertificateKeyFile /etc/letsencrypt/live/ynh.futuretic.fr/privkey.pem
                 Include /etc/letsencrypt/options-ssl-apache.conf                 Include /etc/letsencrypt/options-ssl-apache.conf
   
-         ProxyPreserveHost       On+ ProxyPreserveHost       On
          ProxyRequests Off          ProxyRequests Off
 +
 +                # HSTS
 +                <IfModule mod_headers.c>
 +                        Header always set Strict-Transport-Security "max-age=15768000"
 +                </IfModule>
 +
 + # proxy pour cetificat
 + DocumentRoot /var/www/html
 + ProxyPass /.well-known !
 +
  
  ProxyPass / https://ynh.futuretic.fr/  ProxyPass / https://ynh.futuretic.fr/
  ProxyPassReverse / https://ynh.futuretic.fr/  ProxyPassReverse / https://ynh.futuretic.fr/
 + #ProxyPass "/" "https://10.0.3.243/"
 + #ProxyPassReverse "/" "https://10.0.3.243/"
  
  # For WebSockets  # For WebSockets
Ligne 120: Ligne 140:
        
 Et le debuggeur du navigateur Et le debuggeur du navigateur
 +==== Créer un nouveau certificat pour un sous domaine proxy vers yunohost ====
 +  nano /etc/apache2/sites-available/000-ynh2ssl.futuretic.fr.conf 
 +  cd /etc/apache2/sites-available/
 +  a2ensite 000-ynh2ssl.futuretic.fr.conf 
 +  systemctl reload apache2
 +  certbot certonly --http-01-address 135.181.129.123 -d pass.futuretic.fr
 +  a2dissite 000-ynh2ssl.futuretic.fr.conf 
 +  cp cpad.futuretic.fr.conf pass.futuretic.fr.conf
 +  cp cpad.futuretic.fr-le-ssl.conf pass.futuretic.fr-le-ssl.conf
 + 3127  nano pass.futuretic..fr.conf 
 +Remplacer cpad par pass (dans nano ctrl \ )
 +  nano pass.futuretic.fr.conf
 +  nano pass.futuretic.fr-le-ssl.conf 
 +  a2ensite pass.futuretic.fr-le-ssl.conf pass.futuretic.fr.conf
 +Ajouter à l'ip du container le sous domaine pass.futuretic.fr dans le fichier host
 +  nano /etc/hosts
 +  systemctl reload apache2
 +
 +
 ===== Installation de yunohost  dans le container LXC ===== ===== Installation de yunohost  dans le container LXC =====
 **Entrer dans le container** **Entrer dans le container**
yunohost_un_container_lxc.txt · Dernière modification : 2023/02/19 23:09 de Benjamin Labomedia