Outils pour utilisateurs

Outils du site


redirection

Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
redirection [2025/04/07 16:12] – créée redirection [2025/04/07 16:15] (Version actuelle)
Ligne 31: Ligne 31:
 </code> </code>
  
 +Fichier **/etc/apache2/sites-available/listes.enit.fr.conf
 +**
 +<code>
 +<IfModule mod_ssl.c>
 +
 +#redirect http to https
 +
 +   <VirtualHost *:80>
 +
 + ServerAdmin webmaster@localhost
 + DocumentRoot /var/www/html
 +
 + ErrorLog ${APACHE_LOG_DIR}/error.log
 + CustomLog ${APACHE_LOG_DIR}/access.log combined
 +
 + <Location "/">
 +          Redirect permanent "https://listes.enit.fr/"
 + </Location>
 +
 +   </VirtualHost>
 +
 + <VirtualHost *:443>
 +        ServerName listes.enit.fr
 +
 + DocumentRoot /srv/maintenance
 +    RewriteEngine on
 +    RewriteRule "^/.*$" "/redirection.html" [PT]
 +    <Directory /srv/>
 +        Options         Indexes FollowSymLinks MultiViews
 +        AllowOverride   all
 +        Require all granted
 +    </Directory>
 +
 +        # ServerAlias listes.uttop.fr
 +# proxy fcgi using socket is in wwsympa.conf and was enabled with a2enconf
 +# see /etc/apache2/conf-available/wwsympa.conf
 +# it could be included here too if not gloablly enabled :
 +# Include conf-available/wwsympa.conf
 +
 +# ServerAdmin webmaster@localhost
 +
 +# DocumentRoot /var/www/html
 +
 + ErrorLog ${APACHE_LOG_DIR}/listes.enit.fr.key.log
 + CustomLog ${APACHE_LOG_DIR}/listes.enit.fr.key.log combined
 +
 + SSLEngine on
 + SSLCertificateFile /etc/apache2/ssl/wildcard.uttop.fr.crt
 + SSLCertificateKeyFile /etc/apache2/ssl/wildcard.uttop.fr.key.pem
 + SSLCertificateChainFile /etc/apache2/ssl/chain.uttop.fr.crt
 +
 + #SSLCertificateFile /etc/ssl/certs/listes01_enit_fr.pem
 + #SSLCertificateKeyFile /etc/ssl/private/listes01.enit.fr.key.pem
 +
 + # redirect / root to sympa
 +# RedirectMatch ^/$ /sympa/
 +
 + </VirtualHost>
 +</IfModule>
 +
 +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
 +
 +</code>
  
redirection.1744035157.txt.gz · Dernière modification : de

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki