Open
config.php
and edit following codesudo nano sudo nano /var/www/Symfony/web/config.php
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'192.168.1.180',
'::1',
))) {
header('HTTP/1.0 403 Forbidden');
exit('This script is only accessible from localhost.');
}
http://www.joelverhagen.com/blog/2011/05/how-to-configure-symfony-2-0-on-ubuntu-server-2011-4/
Aucun commentaire:
Enregistrer un commentaire