We Recommend

Pro Apache Pro Apache
In addition to installation, maintenance, and deployment, the book demonstrates how to configure Apache to use Perl, PHP, and Python as server-side scripting languages. And unlike other books on Apache, Pro Apache provides comprehensive information on both major revisions - 1.3 and 2.0 - of the software.


Ballyhoo


Posted By

chrisaiv on 03/10/08


Tagged


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"
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


  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.