Administration
  Home arrow Administration arrow Page 4 - One-Stop Linux Administration with Web...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Actuate Whitepapers 
VeriSign Whitepapers 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM developerWorks
 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? 
ADMINISTRATION

One-Stop Linux Administration with Webmin
By: Dev Shed
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4
    2000-04-06

    Table of Contents:
  • One-Stop Linux Administration with Webmin
  • Installing Webmin
  • Basic Security
  • Adding A Virtual IP and Domain

  • 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

    AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th -1:00PM EST. Register Today!

    One-Stop Linux Administration with Webmin - Adding A Virtual IP and Domain


    (Page 4 of 4 )

    Binding an IP address to your NIC card, then getting Apache to use it for a virtual domain can be a pretty big headache. Lets run through this process with Webmin and you'll see what a breeze it is.

    Binding a additional IP to your NIC

    The first thing that needs to be done is to add the additional IP address(es) to your NIC. First log into Webmin then click on the 'Hardware' tab, next 'Network Configuration', then 'Network Interfaces.' Under Network Interfaces, you'll see two sections: 'Interfaces Active Now' and 'Interfaces Active at boot time.' Interfaces Active Now is/are the IP addresses that are currently active. You can add an IP address to this section, but it won't be active if you reboot, so you'll want to add the IP to the Activated at Boot Time area. This binds the IP address every time your machine boots. Now click on 'Add a new interface' under the Activated at Boot Time area. Here you'll see some information you need to fill in.

    • Name - Your main IP address is probably eth0. To add additional ones that need to go in this sequence eth0:1, then eth0:2, etc. So if you haven't added an addition IP address before type in eth0:1
    • IP address - This is the additional IP address that you're going to bind to your NIC.
    • Netmask - This will be the same as your other IP address(es). Usually it's 255.255.255.0
    • Broadcast - If you don't know this one (I didn't when I first did this) go back one screen and copy the same thing down you have on eth0.

    After you fill in all of the information, click 'Save' and it will take you back to the Network Interfaces screen. Your IP address has now been added so it will bind when you start up. Assuming you want it activated right now, click on eth0:1 (the one you just added) and click "Save and Apply." This will activate the IP address and you should now see it in the Interfaces Active Now section.

    Adding a Virtual Domain in Apache

    This is really not difficult, so I'll just list the steps then give a couple of explanations. First make sure you're logged into Webmin, next click on the 'Server' tab, then 'Apache.' The first time you click on Apache it will ask you to re-configure know modules. It will list all of the modules in the httpd.conf file and have certain ones selected. Unless you know what you're doing with this area just leave it alone and click 'Configure.' It won't pull this screen up again unless you re-load Webmin.

    You should now see the main Apache screen. Down at the bottom there's an option that says 'Create a New Virtual Server.' Just above that, you'll see the virtual servers you already have (if any).
    Now lets fill in your virtual server (also know as virtual domain) information.

    • Address - This is the IP address you want your virtual domain to use. It should be the one you just added in the previous section.
    • Port - By default, your browser uses port 80, unless you're doing something a little funky, just leave the default button checked.
    • Document Root - This is where Apache will look for the web documents. You can type it in or click the button off to the right to browse your system.
    • Server Name - You can leave this on automatic, or you can type something like mydomain.com off to the right. Keep in mind your Domain Name Server (DNS) determines what domain name is attached to your IP address, not this section.
    After you've filled in all of the information, click the 'Create' button. This will add the information to the httpd.conf file. To activate the changes you've made, click the 'Apply Changes' button on the top right of the screen.

    Now if everything is setup right, you should be able to see your page through your web browser (assuming you've already registered the domain name and have DNS setup correctly). Have fun and don't tell too many people about Webmin. We don't want people thinking Linux is easy. :)

    Webmin Links Home Page- <http://www.webmin.com/>
    Standard Modules- <http://www.webmin.com/webmin/standard.html>
    Third Party Modules- <http://www.webmin.com/webmin/third.html>


    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.

     

       

    ADMINISTRATION ARTICLES

    - Network Administration with FreeBSD 7
    - Components of an Information Architecture
    - The Anatomy of an Information Architecture
    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway