installation_apache
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| installation_apache [2023/09/17 15:34] – baalth | installation_apache [2023/12/08 22:39] (Version actuelle) – voir aussi fred.th | ||
|---|---|---|---|
| Ligne 40: | Ligne 40: | ||
| <code bash> | <code bash> | ||
| + | |||
| + | ===== Création des répertoires ===== | ||
| + | |||
| + | Il faut créer des répertoires. | ||
| + | Dans le cas présent, nous avons 2 répertoires à la racine de /var/www/. | ||
| + | Le répertoire site/ contient NoethysWeb et grav/, le site vitrine (Optionnel). | ||
| + | |||
| + | <code bash>cd /var/www/ | ||
| + | mkdir site/ | ||
| + | cd site/ | ||
| + | </ | ||
| + | |||
| + | ===== Installation de NoethysWeb ===== | ||
| + | |||
| + | Il faut télécharger la dernière version de NoethysWeb | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | Une fois le fichier télécharger il suffit d' | ||
| + | |||
| + | |||
| + | ====== Exemple de fichier (téléchargeable et commenté) ====== | ||
| <file bash exemple-ssl.conf> | <file bash exemple-ssl.conf> | ||
| Ligne 45: | Ligne 67: | ||
| < | < | ||
| DocumentRoot / | DocumentRoot / | ||
| - | # Gestion des alias | + | # Gestion des alias sur le serveur |
| - | Alias /phpmyadmin / | + | # Alias pour l' |
| + | Alias /phpmyadmin / | ||
| + | # Alias des media et des fichiers statiques de NoethysWeb | ||
| Alias /media / | Alias /media / | ||
| Alias /static / | Alias /static / | ||
| + | # Alias de la racine du Site créé avec le CMS GRAV (Optionnel) | ||
| Alias / / | Alias / / | ||
| + | # ProxyPreserveHost permet de servir NoethysWeb tel qu'il est exposé par Django | ||
| ProxyPreserveHost On | ProxyPreserveHost On | ||
| + | # Cette route permet la transmission du captcha via apache. | ||
| ProxyPass /captcha http:// | ProxyPass /captcha http:// | ||
| + | # Routes spécifiques correspondantes aux URLS paramétrées dans le fichier settings.production.py | ||
| ProxyPass / | ProxyPass / | ||
| ProxyPassReverse / | ProxyPassReverse / | ||
| Ligne 59: | Ligne 87: | ||
| ProxyPass /portail http:// | ProxyPass /portail http:// | ||
| ProxyPassReverse /portail http:// | ProxyPassReverse /portail http:// | ||
| + | # Route spécifique à l' | ||
| ProxyPass / | ProxyPass / | ||
| ProxyPassReverse / | ProxyPassReverse / | ||
| + | # Route avertissant l' | ||
| ProxyPass /locked http:// | ProxyPass /locked http:// | ||
| - | ProxyPassReverse /locked http:// | + | ProxyPassReverse /locked http:// |
| ServerAdmin webmaster@localhost | ServerAdmin webmaster@localhost | ||
| | | ||
| Ligne 100: | Ligne 131: | ||
| ErrorLog ${APACHE_LOG_DIR}/ | ErrorLog ${APACHE_LOG_DIR}/ | ||
| CustomLog ${APACHE_LOG_DIR}/ | CustomLog ${APACHE_LOG_DIR}/ | ||
| - | ServerName | + | ServerName |
| SSLCertificateFile / | SSLCertificateFile / | ||
| SSLCertificateKeyFile / | SSLCertificateKeyFile / | ||
| Ligne 107: | Ligne 138: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | =====Voir aussi===== | ||
| + | Dans la rubrique installation-hébergement : | ||
| + | * [[autohebergement]] | ||
| + | * [[installation_apache]] | ||
| + | * [[settings_production_detail]] | ||
| + | * [[noethysweb_easy]] | ||
installation_apache.1694957666.txt.gz · Dernière modification : 2023/09/17 15:34 de baalth