Virtual Servers & Web Hosting

Beck Web Virtual Server Hosting Menu Virtual Server Hosting and Domain Name Web Hosting Plans Beck Web Virtual Servers & Design - Design Services Virtual Server and Web Hosting Plan Pricing Beck Web Servers & Design - Educational Links Beck Web Servers & Design -- Links to Search Engines Virtual Server and Web Hosting FAQs




















Beck Web Virtual Servers Logo Why You Should Choose Beck Web for your Virtual Server or Web Hosting Needs Web Presence with a Virtual Server or Web Hosting

Virtual Subhosting

Manual Virtual Subhost Configuration- Adding Separate Log Files and Other Features

Another great feature is the ability to create separate logfiles for your Virtual Subhosts. Consider the following example:

    # point www.bwsd.on.ca and bwsd.on.ca to subdirectory beckweb
    <VirtualHost www.bwsd.on.ca bwsd.on.ca>
    ServerName www.bwsd.on.ca
    ServerAdmin beckweb@bwsd.on.ca
    DocumentRoot /usr/local/etc/httpd/vhosts/beckweb
    TransferLog /usr/local/etc/httpd/vhosts/beckweb/logs/access_log
    ErrorLog /usr/local/etc/httpd/vhosts/beckweb/logs/error_log
    ScriptAlias /cgi-bin/ /usr/local/etc/httpd/vhosts/beckweb/cgi-bin/
    ErrorDocument 404 /errors/notfound.html
    </VirtualHost>

This code isolates the logfiles for the beckweb 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 ~/usr/local/etc/httpd/vhosts/beckweb/logs

Other resource directives
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 beckweb VirtualHost definition:

    # point www.bwsd.on.ca and bwsd.on.ca to subdirectory beckweb
    <VirtualHost www.bwsd.on.ca bwsd.on.ca>
    ServerName www.bwsd.on.ca
    ServerAdmin beckweb@bwsd.on.ca
    DocumentRoot /usr/local/etc/httpd/vhosts/beckweb
    ScriptAlias /cgi-bin/ /usr/local/etc/httpd/vhosts/beckweb/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/beckweb/notfound.html
 
Virtual SubHosting
vaddhost Utility | Manual Subhost Configuration | Adding a CGI-BIN
Adding Log Files | Email Configuration | Installation of Extensions
Limitations of Virtual SubHosting | SubHosting Security Issues
Top

Beck Web - You've come to the right place.
Beck WEB © 1996.