Problème de redirection vers mon application Symfony sur serveur Ubuntu
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.
Question

Problème de redirection vers mon application Symfony sur serveur Ubuntu

by
Régine CARDONNE
Created on 2025-03-24 09:10:01 in Serveurs Privés Virtuels (VPS)

Bonjour,

Je viens de transférer mon application Symfony sur un serveur Ubuntu, et je rencontre un problème de redirection de mon nom de domaine. Lorsque je tape https://domaine.fr/login, je tombe sur une page qui affiche la liste des dossiers et fichiers de mon application, au lieu d'arriver directement sur ma page de connexion de l'application Symfony.

Voici ce que j'ai fait jusqu'à présent :

  1. J'ai transféré l'application Symfony sur le serveur Ubuntu.

  2. J'ai configuré mon serveur web (Apache ou Nginx) pour pointer vers le dossier public de Symfony.

  3. J'ai configuré le DNS pour pointer vers l'adresse IP de mon serveur.

Je pense que la configuration du serveur n'est pas correcte, mais je ne suis pas sûr de ce qui manque. Pouvez-vous me guider sur les étapes à suivre pour résoudre ce problème et rediriger correctement mon nom de domaine vers mon application Symfony ?

  • {127EA92F-D117-4048-8C65-FC669DFC5040}.png 196.96K
Topics: Paramétrage

2 Replies ( Latest reply on 2025-03-28 13:57:54 by
Régine CARDONNE
)

Bonjour,

Vous ne donnez aucune information permettant de vous aider, mais visiblement je ne vois pas de index.html ni index.php

  Merci de m'avoir répondu ! J’ai finalement trouvé la solution en ajoutant ces lignes dans le fichier domaine.conf :

DocumentRoot /var/www/html/public

<Directory /var/www/html/public>
    AllowOverride All
    Require all granted
</Directory>

Bien à vous