Miscellaneous

  Home arrow Miscellaneous arrow Page 4 - 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 - Putting it all together


    (Page 4 of 4 )

    <VirtualHost 111.111.111.111>
            ServerName www.yoursite.com
            DocumentRoot /var/www/sites/yoursite
     ServerAdmin you@yoursite.com
            ErrorLog /var/log/httpd/yoursite-error_log
            TransferLog /var/log/httpd/yoursite-access_log
     ErrorDocument 404 /var/www/sites/yoursite/notfound.html

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

    Ok, lets restart apache and see if it works

    /etc/rc.d/init.d/httpd restart

    This is a pretty complete virtual host directive. There are some other things that can be put into it but this should cover 99% of everyone.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.
    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 5 - Follow our Sitemap