Miscellaneous
  Home arrow Miscellaneous arrow Page 2 - Virtual Domains
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
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

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    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


     

    MISCELLANEOUS ARTICLES

    - Install Slackware on Your Old PC
    - Firefox Plugins You`re Not Using (and Should...
    - Working with MP3 ID3 Tags in FTP Server Usin...
    - How Switching to Linux Can Make Your Computi...
    - Set Up Your Home Office on Linux: a Guide fo...
    - Putty File Transfer Commands in SSH Protocol
    - Setting Up Ubuntu for Your Home Office
    - Installing Mint Linux
    - Crucial Traits of Awk
    - Using PHP to Stream MP3 Files and Prevent Il...
    - 10 Must Have Firefox Improvements
    - All About OpenOffice 3.0
    - Shell Script Writing
    - Loops in the UNIX Shell
    - The Test in the UNIX Shell





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 10 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek