Differences
This shows you the differences between two versions of the page.
docs:apache_web_server:changing_the_document_root [2008/12/19 23:28] – created billh | docs: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 / | ||
- | - edit <apache dir>/ | ||
- | - change the DocumentRoot< | ||
- | # | ||
- | DocumentRoot "/ | ||
- | </ | ||
- | - change the directory configuration< | ||
- | #< | ||
- | # Options FollowSymLinks | ||
- | # AllowOverride None | ||
- | # Order deny,allow | ||
- | # Deny from all | ||
- | #</ | ||
- | |||
- | < | ||
- | Order deny,allow | ||
- | Deny from all | ||
- | Allow from 192.168.3.0/ | ||
- | Allow from localhost | ||
- | |||
- | AllowOverride All | ||
- | Options MultiViews Indexes FollowSymLinks IncludesNoExec | ||
- | </ | ||
- | </ |