|<- [[Working with Apache Web Server]]|[[Installing to Yosemite]] ->|
===== Changing the Document Root =====
Le document root est le répertoire où l'on va stocker nos sites.
Par défaut : /Library/WebServer/Documents
On va créer un User Document Root : ~/Sites (plus présent depuis OSX 10.8)
==== configurer ====
sudo nano /etc/apache2/users/.conf (fichier potentiellement inexistant par défaut).
===Code à renseigner===
/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
=== Permissions ===
sudo chmod 644 /etc/apache2/users/.conf
sudo apachectl restart // si apache en cours d'exécution
=== accès ===
-> localhost/~