Serveurs Privés Virtuels (VPS) - Accès web au DocumentRoot Apache
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

Accès web au DocumentRoot Apache

Von
Jean-FrancoisH6
Erstellungsdatum 2020-02-17 21:27:24 (edited on 2024-09-04 11:23:48) in Serveurs Privés Virtuels (VPS)

_VPS SSD 1 sur Debian 9 + Plesk Obsidian_
Bonjour,
Mon VPS contient 3 sites sur une IP unique. J'aimerais en plus placer des scripts php exécutables à partir du web (via une requête http) en dehors de mes 3 vhosts.
En les plaçant dans le DocumentRoot d'Apache `/var/www/html/`, par exemple :
`/var/www/html/script1.php`,
je pensais pouvoir les exécuter par :
https://mon_ip/script1.php
Mais cela ne fonctionne pas ("File not found").
Quelqu'un pourrait-il me dire pourquoi ?
Merci !


1 Antwort ( Latest reply on 2020-02-20 07:49:10 Von
Jean-FrancoisH6
)

Au cas où cela intéresserait quelqu'un, je me réponds à moi-même :
Dans Plesk, http://my_ip/script.php correspond au chemin :
` /var/www/vhost/default/htdocs/script.php`
(Merci à _sebgonzes_ sur le forum Plesk)