La Ferme du web - Les forums

Venez baraguiner avec la communauté !

Vous n'êtes pas identifié.

#1 17/02/2012 10:36:31

sfmapro
Membre
Date d'inscription: 17/02/2012
Messages: 2

URL Error 400. Obligation de saisir manuellement index.php

Bonjour à tous,

Je suis actuellement sur un projet de développement sur symfony 1.4, RED HAT 6, Mysql 5

Je suis obligé de saisir “index.php” sur chaque sous-url de mon appli  http://company.int/ipc/

=> http://company.int/ipc/ donne error page 400 http://company.int/ipc/index.php works fine.

meme chose pour: http://company.int/ipc/en/project/1709/C998 --> error 400
mais
http://company.int/ipc/index.php/en/project/1709/C998 OK

peut-etre quelqu'un a-t'il une idée de ce qui se passe?

Would an apache directive resolve this problem ?
est-ce qu'une directive apache resoudrait ce problème?

Voici mon fichier httpd.conf sous le server company.int:

....

DirectoryIndex index.php index.html index.html.var

...

<VirtualHost *:80>

  DocumentRoot "/data/ipc/web"

  DirectoryIndex index.php

  Alias /ipc "/data/ipc/web"

<Directory "/data/ipc/web">

    AllowOverride None

    AllowOverride All

</Directory>

Alias /sf "/data/ipc/lib/vendor/symfony/data/web/sf"

<Directory "/data/ipc/lib/vendor/symfony/data/web/sf">

    AllowOverride All

    Allow from All

</Directory>

</VirtualHost>

...


...............................  For our English Friends

Dear All,

I work with symfony 1.4, RED HAT 6, Mysql 5

It seems that we are obliged to always write down “index.php” in any of the subpages under  http://company.int/ipc/

Example : http://company.int/ipc/ doesn’t work but http://company.int/ipc/index.php works fine.

Same for

http://company.int/ipc/en/project/1709/C998 doesn’t work
but 
http://company.int/ipc/index.php/en/project/1709/C998 works fine.

I had not this problem with the project as document root on httpd.conf but now i have many application on the same server.

Could you please help us solving this problem ?

Would an apache directive resolve this problem ?

This my httpd.conf configuration under company.int:

....

DirectoryIndex index.php index.html index.html.var

...

<VirtualHost *:80>

  DocumentRoot "/data/ipc/web"

  DirectoryIndex index.php

  Alias /ipc "/data/ipc/web"

<Directory "/data/ipc/web">

    AllowOverride None

    AllowOverride All

</Directory>

Alias /sf "/data/ipc/lib/vendor/symfony/data/web/sf"

<Directory "/data/ipc/lib/vendor/symfony/data/web/sf">

    AllowOverride All

    Allow from All

</Directory>

</VirtualHost>

...

Thank you very much for your help

Hors ligne

 

17/02/2012 10:36:31

Botte De Foin Publicitaire


Pied de page des forums

Powered by FluxBB
© Copyright 2008-2009 - LaFermeduWeb.net