Configuring Apache

  1. The default system document root is still found at - http://localhost/ The files are shared in the filing system at -
  2. The other web root directory which is missing by default is the ~/Sites folder in the User account.

  3. Check that you have a username.conf filed under:
    If you don’t (very likely), then create one named by the short username of the account with the suffix .conf, it's location and permissions/ownership is best tackled by using the Terminal:

    [~/LPPbook(master)]$ ls -l /etc/apache2/users/
    total 40
    -rw-r--r--  1 root  wheel  143 15 feb  2010 casiano.conf

  4. [~/LPPbook(master)]$ cat /etc/apache2/users/casiano.conf 
    <Directory "/Users/casiano/Sites/">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
  5. Permissions on the file should be:

    -rw-r--r--   1 root  wheel  298 Jun 28 16:47 username.conf
  6. Restart Apache for the new file to be read:

    sudo apachectl restart
  7. Then this user level document root will be viewable at:

Casiano Rodriguez León 2015-06-18