installation_d_apache
Ceci est une ancienne révision du document !
Table des matières
Apache
Installation
Commande
~# apt-get install apache2 ~#
Contrôle de l'installation
Lancer un navigateur à l'adresse http://localhost, une page par défaut s'affiche si tout est OK.
Création d'un hôte virtuel
/etc/site-available/www.symfony.dev.conf
Le fichier du l'hôte doit se terminer par “ .conf ”.
<VirtualHost *:80>
ServerName www.symfony.dev
ServerAdmin webmaster@localhost
DocumentRoot /home/pascal/dev/www.symfony.dev/sources/web
<Directory /home/pascal/dev/www.symfony.dev/sources/web/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Activation d'un site
~# a2ensite 100-www.symfony.dev Enabling site 100-www.symfony.dev. To activate the new configuration, you need to run: service apache2 reload ~#
installation_d_apache.1441304150.txt.gz · Dernière modification : 2023/07/04 10:55 (modification externe)