Site Administration Page 4 - One-Stop Linux Administration with Webmin |
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.
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 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/>
blog comments powered by Disqus |