docs:apache_web_server:changing_the_document_root

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

docs:apache_web_server:changing_the_document_root [2008/12/19 23:28] – created billhdocs:apache_web_server:changing_the_document_root [2016/03/27 14:08] (current) – removed billh
Line 1: Line 1:
-====== 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<code> 
-#DocumentRoot "/usr/local/apache2/htdocs" 
-DocumentRoot "/htdocs/public_html" 
-</code> 
-  - change the directory configuration<code> 
-#<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> 
-</code> 
  • docs/apache_web_server/changing_the_document_root.1229754507.txt.gz
  • Last modified: 2008/12/19 23:28
  • by billh