Commit 72193a7c authored by Eric's avatar Eric
Browse files

configuration apache

parent 7c35c30b
<VirtualHost 87.98.220.62:80>
ProxyPreserveHost On
RewriteEngine On
#lets encrypt
RewriteCond %{REQUEST_URI} !^/\.well\-known/acme\-challenge/
RewriteCond %{HTTP_HOST} ^autoconfig\. [NC]
RewriteRule ^/(.*) http://autoconfig.sud-ouest2.org/$1 [L,R=301,NE]
RewriteRule ^/$ https://%{HTTP_HOST}/wws/ [L,R=301,NE]
RewriteRule ^/wws/$ https://%{HTTP_HOST}/wws/ [L,R=301,NE]
ServerName MAQUETTE
ServerAlias AUTOCONFIG
ServerAdmin listmaster@DOMAINE
ErrorLog /var/log/apache2/MAQUETTE-error.log
CustomLog /var/log/apache2/MAQUETTE-access.log combined
</VirtualHost>
<VirtualHost 87.98.220.62:443>
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/$ /wws/ [L,R=301,NE]
ServerName MAQUETTE
ServerAlias AUTOCONFIG
#SYMPA
ProxyPass "/static-sympa" "http://sympa-01.sud-ouest2.org/static-sympa"
ProxyPassReverse "/static-sympa" "http://sympa-01.sud-ouest2.org/static-sympa"
ProxyPass "/wws" "http://sympa-01.sud-ouest2.org/wws"
ProxyPassReverse "/wws" "http://sympa-01.sud-ouest2.org/wws"
SSLEngine On
SSLCertificateFile /var/lib/dehydrated/certs/MAQUETTE/cert.pem
SSLCertificateKeyFile /var/lib/dehydrated/certs/MAQUETTE/privkey.pem
SSLCertificateChainFile /var/lib/dehydrated/certs/MAQUETTE/chain.pem
SSLProtocol all -SSLv2 -SSLv3
ServerAdmin webmaster@localhost
ErrorLog /var/log/apache2/MAQUETTE-error.log
CustomLog /var/log/apache2/MAQUETTE-access.log combined
</VirtualHost>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment