Miscellaneous

  Home arrow Miscellaneous arrow Page 2 - 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 - Basics


    (Page 2 of 4 )

    Before we start Always, Always, ALWAYS!! make a backup before you start.

    cd to the correct directory

    cd /etc/httpd/conf

    then

    cp httpd.conf httpd.orig

    This copies the httpd.conf file to a backup file of httpd.orig this way if you have a real problem or you really mess up you can always revert back to the original one.

    Using your favorite text editor I use vi or if your new to Linux pico is very easy to use.

    pico httpd.conf

    or

    vi httpd.conf

    open the file httpd.conf Near the bottom you will see notations where the virtual domains should be placed.

    This is an example of the most basic virtual

    <VirtualHost 111.111.111.111>
            ServerName www.yoursite.com
            DocumentRoot /var/www/sites/yoursite
    </VirtualHost>

    This is small and it works...

    Every virtual host like HTML has to have an opening <VirtualHost ip address> and a closing </VirtualHost>

    The first line needs two things the opening <VirtualHost and your IP address>.

    The second line denotes your site name

    The third line is the path to your documents. I always use the above path /var/www/sites this keeps things organized but you can put them anywhere in theory but try my way for a while.

    Closing </VirtualHost>

    Now that's a real basic working virtual host.

    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 8 - Follow our Sitemap