Miscellaneous

  Home arrow Miscellaneous arrow Page 3 - Virtual Domains
MISCELLANEOUS

Virtual Domains
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2002-10-01

    Table of Contents:
  • Virtual Domains
  • Basics
  • Additional Items
  • Putting it all together

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Virtual Domains - Additional Items


    (Page 3 of 4 )

    Now lets add some other necessary items. Most of these are self explanatory.

    ServerAdmin you@yoursite.com
        ErrorLog /var/log/httpd/yoursite-error_log
        TransferLog /var/log/httpd/yoursite-access_log

    Now if you want to have an executable directory for cgi/perl scripts you need to make a directory in your document root for your scripts to be placed I always use cgi-bin

    Here is what you need in your virtual hosts file for an executable directory

    ScriptAlias /cgi-bin/ /var/www/sites/yoursite/cgi-bin/

    If you want to password protect files with .htaccess you need the following lines.

    <Directory "/var/www/sites/yoursite">
        Options Indexes Includes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    This is always cool to have your own custom 404 error file you can also specify this in your virtual.

    ErrorDocument 404 /var/www/sites/yoursite/notfound.html

    More Miscellaneous Articles
    More By Codewalkers

    blog comments powered by Disqus

    MISCELLANEOUS ARTICLES

    - Oracle Database XE: Indexes and Sequences
    - Modifying Tables in Oracle Database XE
    - Oracle Database XE: Tables and Constraints
    - More on Oracle Databases and Datatypes
    - Oracle Database XE Datatypes: Datetime and L...
    - Oracle Database XE Datatypes: Character and ...
    - From Databases to Datatypes
    - Firefox 3.6.6 Released with Improved Plug-in...
    - Attention Bloggers: WordPress 3.0 Now Releas...
    - Reflection in PHP 5
    - Inheritance and Other Advanced OOP Features
    - Advanced OOP Features
    - Linux from Scratch V.6.6 Review
    - Linux Gaining in Strength
    - Install Slackware on Your Old PC


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap