reseau:debian:reverseproxy:accueil
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| reseau:debian:reverseproxy:accueil [2023/11/15 09:32] – créée techer.charles_educ-valadon-limoges.fr | reseau:debian:reverseproxy:accueil [2023/11/15 17:51] (Version actuelle) – [Ressources] techer.charles_educ-valadon-limoges.fr | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| ===== Ressources ===== | ===== Ressources ===== | ||
| - | https:// | + | * https:// |
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| ===== Installation ===== | ===== Installation ===== | ||
| Ligne 10: | Ligne 17: | ||
| </ | </ | ||
| - | | + | ===== Créer un site en HTTPS ===== |
| + | | ||
| + | < | ||
| + | a2enmod ssl | ||
| + | a2ensite default-ssl | ||
| + | service apache2 reload | ||
| + | </ | ||
| + | <WRAP center round info> | ||
| + | Apache propose à l' | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | ===== Rediriger http vers https ===== | ||
| + | |||
| + | * modifiez le fichier **/ | ||
| + | < | ||
| + | Redirect permanent / https:// | ||
| + | </ | ||
| + | |||
| + | ===== activation des modules : proxy et proxy_http | ||
| < | < | ||
| a2enmod proxy proxy_http | a2enmod proxy proxy_http | ||
| </ | </ | ||
| + | |||
| + | ===== Création du fichier de configuration ===== | ||
| + | |||
| + | |||
| + | vim / | ||
| + | |||
| + | # ou | ||
| + | nano / | ||
| + | |||
| + | Voici un fichier de configuration d’exemple : | ||
| + | |||
| + | < | ||
| + | ServerName votre-domaine.fr | ||
| + | ServerAdmin postmaster@domaine.fr | ||
| + | ProxyPass / http:// | ||
| + | ProxyPassReverse / http:// | ||
| + | ProxyRequests Off | ||
| + | </ | ||
| + | |||
| + | ServerName correspond à votre domaine | ||
| + | ProxyPass et ProxyPassReverse correspondent au serveur de destination. | ||
| + | ProxyRequests est en off pour des raison de sécurité. | ||
| + | |||
| + | Activer la configuration : | ||
| + | |||
| + | a2ensite votre-conf.conf | ||
| + | |||
reseau/debian/reverseproxy/accueil.1700037128.txt.gz · Dernière modification : 2023/11/15 09:32 de techer.charles_educ-valadon-limoges.fr
