Serveurs Privés Virtuels (VPS) - VPS OVH: Apache2 Debian Default Page
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

VPS OVH: Apache2 Debian Default Page

Von
Missy
Erstellungsdatum 2019-03-20 06:10:29 (edited on 2024-09-04 12:14:03) in Serveurs Privés Virtuels (VPS)

Bonjour,
Je suis sur un VPS avec wordpress installé (installation automatique via l'option proposée par OVH). Mon site fonctionnait très bien il y a quelques heures puis j'ai voulu activer SSL via cloudflare.
Depuis que j’ai modifié le lien vers mon site (de http vers https) dans les settings de wordpress, quand je me rend via mon navigateur sur :
- http://vpsXXXXXX.ovh.net/
- adresse IP de mon VPS
- monsite.fr
**=>** J'ai toujours la même page: Apache2 Debian Default Page

J'ai donc désactivé cloudflare (en réinitialisant mes DNS, mon domaine est aussi sur OVH), j'ai remis les valeurs en http (au lieu de https) via PhpMyadmin mais sans succès.

Merci de votre aide.


1 Antwort ( Latest reply on 2019-03-21 03:00:46 Von
Missy
)

apache2ctl -S me donne :

[Wed Mar 20 07:21:12.144137 2019] [alias:warn] [pid 1685] AH00671: The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
VirtualHost configuration:
*:443 vpsXXXXXX.ovh.net (/etc/apache2/sites-enabled/default-ssl.conf:2)
*:80 monsite.fr (/etc/apache2/sites-enabled/wordpress.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex mpm-accept: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33

> J'ai toujours la même page: Apache2 Debian Default Page

utilise http ou configure un virtualhost pour le port 443

Merci de ta réponse, problème résolu! J'ai modifié default-ssl.conf et j'ai de nouveau accès à mon site.
Pour avoir le SSL avec cloudflare j'ai dû uploader les fichiers du certificat SSL sur mon serveur et ajouter ces lignes dans mon .conf:

SSLEngine on
SSLCertificateFile /path/to/monsite.crt
SSLCertificateKeyFile /path/to/monsite.key

apache2ctl -S me donne :

VirtualHost configuration:
*:443 mon site.fr (/etc/apache2/sites-enabled/default-ssl.conf:2)
*:80 mon site.fr (/etc/apache2/sites-enabled/wordpress.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex rewrite-map: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33