vendredi 4 octobre 2013

Install Symfony sous ubuntu

Donner l'accés à une machine distance sur les ficheir de conf :

Open config.php and edit following code
sudo 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

Comment Installer un Serveur Ark Survival Ascend sur Linux avec Docker

 Les fans d'Ark Survival Ascend qui utilisent Linux peuvent désormais se réjouir, car il existe une solution pour déployer un serveur Ar...