Jump to content

symfony, problème de config


balooo

Recommended Posts

Bonjour, Dan avait réussi gentillement à m'aider pour les  DNS maintenant mon site symfony apparait très bien dans mon documentroot, en revanche il ne fait que lister le repertoire web, et donc n'utilise pas app.php ou app_dev.

Une idée?

Link to comment
Share on other sites

définissez l'index du vhost comme "add.php" ou renommez le fichier php que vous souhaitez voir être exécuté par défaut en "index.php".

A moins que vous souhaitez signaler que les scripts ne sont pas fonctionnels ? Si c'est le cas, il vous faudra installer le module PHP pour votre serveur web

Link to comment
Share on other sites

Symfony ne fonctionne pas avec des index, il y a une regle de reecriture; j'ai bien mis cette regle fichier conf mais rien ni fait

Pour info c'est le site chaussito.ovh

Edited by balooo
Link to comment
Share on other sites

egalement pour info le vhost

<VirtualHost *:80>
    ServerName chaussito.ovh
    ServerAlias www.chaussito.ovh

    DocumentRoot /var/www/www-dev/frontorny/web
    <Directory /var/www/www-dev/frontorny/web>
        AllowOverride None
        Order Allow,Deny
        Allow from All

        <IfModule mod_rewrite.c>
            Options -MultiViews
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*)$ app.php [QSA,L]
        </IfModule>
    </Directory>

    # uncomment the following lines if you install assets as symlinks
    # or run into problems when compiling LESS/Sass/CoffeeScript assets
    # <Directory /var/www/project>
    #     Options FollowSymlinks
    # </Directory>

    # optionally disable the RewriteEngine for the asset directories
    # which will allow apache to simply reply with a 404 when files are
    # not found instead of passing the request into the full symfony stack
    <Directory /var/www/www-dev/frontorny/web/bundles>
        <IfModule mod_rewrite.c>
            RewriteEngine Off
        </IfModule>
    </Directory>
    ErrorLog /var/log/apache2/project_error.log
    CustomLog /var/log/apache2/project_access.log combined
</VirtualHost>

Edited by balooo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...