• # solution - configurer le vhost

    Posté par . En réponse au message apache 2.4.25 sur debian et repertoire de contenus. Évalué à 1. Dernière modification le 19 mars 2019 à 13:36.

    Testé juste en ajoutant les lignes suivantes dans mon vhost (sans ce paragraphe j'ai la même erreur que toi):

    DocumenRoot /home/vox/test/
    <Directory /home/vox/test/>
     Options Indexes FollowSymLinks
     AllowOverride All
     Require all granted
    </Directory>
    
    mkdir ~/test
    echo '<?php echo "hello world"; ?>' > ~/test/test.php
    chown www-data -R ~/test ; chmod 774 -R ./test/
    └─ $ ▶ wget --no-check-certificate https://www.test.linuxfr.org/test.php
    --2019年03月19日 13:26:53-- https://www.test.linuxfr.org/test.php
    Resolving www.test.linuxfr.org (www.test.linuxfr.org)... 42.42.42.42
    Connecting to www.test.linuxfr.org (www.test.linuxfr.org)|42.42.42.42|:443... connected.
    WARNING: cannot verify www.test.linuxfr.org's certificate, issued by ‘CN=myMachine.home’:
     Self-signed certificate encountered.
    WARNING: no certificate subject alternative name matches
     requested host name ‘www.test.linuxfr.org’.
    HTTP request sent, awaiting response... 200 OK
    Length: 11 [text/html]
    Saving to: ‘test.php’
    test.php 100%[==============================================================================>] 11 --.-KB/s in 0s 
    2019-03-19 13:26:53 (2,40 MB/s) - ‘test.php’ saved [11/11]
    └─ $ ▶ cat ./test.php 
    hello world