Problème d'acces symfony2
Bonjour
j'ai installé le framework symfony2 sur mon serveur distant heberger chez ovh,j'ai un message d'erreur quand je veux me connecter au navigateur config.php
Citation:
This script is only accessible from localhost.
Pourtant j'ai bien ajouter l'ip public de mon providers sur config.php et app_dev.php et je ne souhaite pas laissé le fichier open pour des raisons de sécurité
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <?php
if (!isset($_SERVER['HTTP_HOST'])) {
exit('This script cannot be run from the CLI. Run it from a browser.');
}
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1','monadresseip'
))) {
header('HTTP/1.0 403 Forbidden');
exit('This script is only accessible from localhost.');
} |
si quelqu'un peu m'éclairer sur ce sujet
Cdt