This is an old revision of the document!
changing the document root
This page shows an example of changing the document root to a different location, and permitting access by machines within the same subnet.
- create the new document root directories at /htdocs/public_html, and make sure they have read permission by everyone or set the owner to www
- edit <apache dir>/conf/httpd.conf
- change the DocumentRoot
#DocumentRoot "/usr/local/apache2/htdocs" DocumentRoot "/htdocs/public_html"
- change the directory configuration
#<Directory /> # Options FollowSymLinks # AllowOverride None # Order deny,allow # Deny from all #</Directory> <Directory /> Order deny,allow Deny from all Allow from 192.168.3.0/24 Allow from localhost AllowOverride All Options MultiViews Indexes FollowSymLinks IncludesNoExec </Directory>