yunohost_un_container_lxc
Différences
Ci-dessous, les différences entre deux révisions de la page.
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 Labomedia | yunohost_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> | ||
< | < | ||
+ | |||
< | < | ||
+ | |||
ServerAdmin | ServerAdmin | ||
ServerName | ServerName | ||
- | | + | |
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 / | SSLCertificateFile / | ||
SSLCertificateKeyFile / | SSLCertificateKeyFile / | ||
Include / | Include / | ||
- | | + | ProxyPreserveHost |
ProxyRequests Off | ProxyRequests Off | ||
+ | |||
+ | # HSTS | ||
+ | < | ||
+ | Header always set Strict-Transport-Security " | ||
+ | </ | ||
+ | |||
+ | # proxy pour cetificat | ||
+ | DocumentRoot / | ||
+ | ProxyPass / | ||
+ | |||
ProxyPass / https:// | ProxyPass / https:// | ||
ProxyPassReverse / https:// | ProxyPassReverse / https:// | ||
+ | # | ||
+ | # | ||
# 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 / | ||
+ | cd / | ||
+ | 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 | ||
+ | | ||
+ | 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 | ===== Installation de yunohost | ||
**Entrer dans le container** | **Entrer dans le container** |
yunohost_un_container_lxc.txt · Dernière modification : 2023/02/19 23:09 de Benjamin Labomedia