Blue Reef Technical Support Blue Reef Virtual Server Reseller ProgramInstallation instructions, manuals, how-tos, and more!About Blue Reef Consulting, Inc.

About Blue Reef Virtual ServersEcommerce Solutions for your Virtual ServerSearch the Blue Reef Virtual Server web site
Return to Blue Reef Virtual Servers Home Page
Order virtual servers, software, computers, and more!
Return to Blue Reef Main Home Page
Specials
Site Map
Support Solutions to help you do business with your Virtual Server.



Blue Reef Virtual Servers
Virtual Server Support
Virtual Server Addons
Virtual Hosting on a Virtual Server
Virtual Hosting Overview
Using vaddhost to Automatically Add Virtual Hosts to your ServerUsing vaddhost to Automatically Add Virtual Hosts to your Server
Setting up Virtual Hosting
Advanced Features of Virtual Hosting Setup
Configuring Email Hosts
Miva SubhostsMiva Configuration of Subhosts
Configuring Hosts with FrontPage Extensions
Virtual Hosting Limitations
Virtual Hosting Security Issues
Virtual Hosting FAQ
Request help using our Problem Tracking System
Order a Blue Reef Virtual Server now!


Custom File Locations for Subhosts

Separate Log Files
Another 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 church Virtual Subhost rather than having them all lumped into the master log files. You will need to create the logs directory that you define using the TransferLog and ErrorLog directives. You can create the directory by connecting to your Virtual Server and issuing the command:

    % mkdir ~/www/vhosts/church/logs

Error Documents
Most server resource directives can be included in your <VirtualHost> definition. For example, we can include the definition of a "Not Found Document" (ErrorDocument 404) in the church VirtualHost definition:

    # 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 notfound.html is:

    ~/www/vhosts/church/notfound.html
SEE ALSO:

Virtual Server Basics

Server Configuration


Server Add-ons

Using Telnet/SSH

Admin Utilities

Microsoft FrontPage Extensions

Recommended Security Books

Recommended Server Books

BOOKS TO HELP YOU:

Apache Server For Dummies
Apache Server For Dummies

$23.99

Apache: Web Server Directives Guidebook
Apache: Web Server Directives Guidebook

$15.95

Administering Web Servers, Security and Maintenance
Administering Web Servers, Security and Maintenance

$40.00

Amazon.com logo
Search for :
Enter keywords...