Posted By

chrisaiv on 03/10/08


Versions (?)

OS X.5: Configure Apache 2 to point at my Sites Directory (ver 2)

 / Published in: Apache

There is another way to point Apache 2 to my Sites directory after upgrading Tiger to Leopard 1. I used textmate to open this file /etc/apache2/httpd.conf 2. I commented this line

DocumentRoot "/Library/WebServer/Documents"
  1. Replaced it with this line instead DocumentRoot "/Users/macusershortname/Sites"
  2. Added a file titled macusershortname.conf to : /etc/apache2/users/
  3. Include this snippet into macusershortname.conf
  1. <Directory "/Users/mac_user_shortname/Sites/">
  2. Options Indexes MultiViews
  3. AllowOverride None
  4. Order allow,deny
  5. Allow from all
  6. </Directory>

Report this snippet  

You need to login to post a comment.