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


/ Published in: Apache
Save to your folder(s)

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"
3. Replaced it with this line instead
DocumentRoot "/Users/mac_user_shortname/Sites"
4. Added a file titled mac_user_shortname.conf to :
/etc/apache2/users/
5. Include this snippet into mac_user_shortname.conf


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.