Certificats SSL - Wordpress, certbot, ssl : mauvaise configuration
... / Wordpress, certbot, ssl :...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Wordpress, certbot, ssl : mauvaise configuration

Von
ArnaudM8
Erstellungsdatum 2018-05-25 10:08:43 (edited on 2024-09-04 12:36:24) in Certificats SSL

Bonjour,
Je suis en train de configurer un certificat ssl sur mon vps.
J'ai utilisé CertBot.
La particularité est que le site est sur un wordpress installé automatiquement ( dans /var/www/wordpress )
J'ai suivi la procédure suivante : https://gist.github.com/harryfinn/e36e41cdbfba5a6e1d69d6498a4fc5ee

Mon certificat est valide selon ssl-cert-check

Là où j'ai un doute c'est la partie Configuring Apache site configs
car dans /etc/apache2/sites-available/ j'ai :
default-ssl.conf et wordpress.conf

Quand j'ajoute les paramètres :


ServerName nomdedomaine.com
ServerAdmin communication@nomdedomaine.com
DocumentRoot /var/www/wordpress

ErrorLog ${APACHE_LOG_DIR}/nomdedomaine.com-error.log
CustomLog ${APACHE_LOG_DIR}/nomdedomaine.com-access.log combined

SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/nomdedomaine.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nomdedomaine.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/nomdedomaine.com/chain.pem

Header always set Strict-Transport-Security "max-age=15768000"

RequestHeader append "X-Forwarded-Proto" "https"
RequestHeader set "X-Forwarded-Ssl" "on"


à wordpress.conf j'ai une erreur au reload d'Apache et quand je crée un fichier nomdedomaine.com.conf avec tout le paramétrage apache se relance bien mais mon certificat n'est pas trouvé.

Comment configurer mon apache avec une installation wordpress préinstaller ?

Merci pour votre aide,