![]() |
|
|
|
![]() |
![]() ![]() |
Custom File Locations for SubhostsSeparate Log FilesAnother great feature is the ability to create separate log files for your Virtual Subhosts. Consider the following excerpt from the httpd.conf file:
# point www.church.org and church.org # to subdirectory church <VirtualHost www.church.org church.org> ServerName church.org ServerAdmin avi@church.org DocumentRoot /www/vhosts/church TransferLog /www/vhosts/church/logs/access_log ErrorLog /www/vhosts/church/logs/error_log ScriptAlias /cgi-bin/ /www/vhosts/church/cgi-bin/ ErrorDocument 404 /errors/notfound.html </VirtualHost> This code isolates the log files for the
Error Documents # point www.church.org and church.org # to subdirectory church <VirtualHost www.church.org church.org> ServerName church.org ServerAdmin avi@church.org DocumentRoot /www/vhosts/church ScriptAlias /cgi-bin/ /www/vhosts/church/cgi-bin/ ErrorDocument 404 /notfound.html </VirtualHost> Note the file location is specified with respect to the DocumentRoot....
so the actual file location of
|
|
![]() |
[ SERVERS | ECOMMERCE | SUPPORT | SPECIALS | SEARCH | SITE MAP | ORDER] [ HOME | CONTACT US | ABOUT US | PRIVACY | LEGAL | REFUND POLICY ] © Copyright 1998 - 2001 Blue Reef Consulting, Inc. All Rights Reserved. Comments or questions about this web site? Write to webmaster@bluereef.net. Phone: (305) 274-8393 |