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 a cgi-bin Directory

Many of your potential Virtual Subhosting clientele will want cgi-bin access.... this can easily be configured for a Virtual Subhost using the ScriptAlias directive in the ~/www/conf/httpd.conf file on your Virtual Server (or the ~/www/conf/srm.conf file, if you Virtual Server was configured before Dec. 8, 1998). For example, the www.bwsd.on.ca site has its own cgi-bin. This can easily added to the Virtual Subhost definition by simply using the "ScriptAlias" directive as show below:

    # 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 webmaster@bwsd.on.ca
    DocumentRoot /usr/local/etc/httpd/vhosts/beckweb
    ScriptAlias /cgi-bin/ /usr/local/etc/httpd/vhosts/beckweb/cgi-bin/
    </VirtualHost>

You will need to create the cgi-bin directory that you define using the ScriptAlias directive. You can create the directory by connecting to your Virtual Server and issuing the command:

    mkdir ~/usr/local/etc/httpd/vhosts/beckweb/cgi-bin

NOTE: It is important to understand that giving cgi-bin access to your Virtual Subhosted clients is a potential security risk. This is because the CGIs your customers upload and execute have all of the rights and privileges of the CGIs you execute. Therefore, it is possible for a Virtual Subhosted client, which has been granted CGI privileges, to read or remove any file in your directory heirarchy. Moreover, it is possible for a malicious subhosted client to crack weak passwords and gain shell access to your Virtual Server. See our document, Virtual Subhosting security issues for more information.
 
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.