Configure mutiple IBM HTTP server/other Apache based WEB server on 1 Physical Server (Section 1)

Source: Internet
Author: User

It's very simple-to-configure a IBM HTTP Server/apache service on a Server. But sometimes, considering the cost or any other reason, we need to share a physical server and configure 2 or more Web SE Rvices. How to do it?

Here I lists the major steps for reference and for my own record. These articles would not be only contains what to configure, also would show you what to do some troubleshooting. All of the experiences were summarized from my currently work, hope it's meaningful for you. Let's begin, saying we have configured 1 IHS service on the server and can access it via 192.168.67.100 (: +, or any other Port), and we need to add another site which should is access via 192.168.67.101 (: +, or any other port). 1) Add a virtual IP into the server. 2) confirmed the port of the new added IP is isn't listened by any other services. 3) Copy the httpd.conf file to httpd2.conf, and modify them. 4) Create the needed folders (DocumentRoot, log folder, etc.) and add HOSTNAME/IP entry in the Hosts file (if needed). 5) Start the Ihs/apache service. 6) Verify if the changes works.Below I provide the detailed steps for reference: 1) Add a virtual IP into the server.There is some difference between Windows and Linux server.For Windows: 1. Open the "Network and Sharing Center", and open the properties of the network device.     Click "Properties".      2. Follow the steps of below to going to add a virtual IP. 3. Add the IP and mask. Mask should be same as the original one. Click Add. 4. Verify If the IP has been added successfully.  Can just simple use a "ping" command. good! The Virtual IP has been added to the server and it could is used to access data now!For Linux:As there is plenty of Linux release versions and the network settings is not the same, so now I only paste the Suse Linu X for reference.
1. Become root on your system, either by logging into, or using the SU command.

2. Change your current directory to the/etc/sysconfig/network-scripts directory with the command:
Cd/etc/sysconfig/network-scripts 3. Check for existing network adapters with the command:
LS ifcfg-eth*
And look for a file named similar to Ifcfg-eth-id-12:34:56:78:90:ab. The colon-delimited letters and digits at the end is the MAC address (hardware address) of the Ethernet adapter.

4. To create the new interface, you'll edit Ifcfg-eth-id-12:34:56:78:90:ab. The file should contain lines similar to:
bootproto= ' Static '
Broadcast= ' 24.249.162.255 '
Ipaddr= ' 24.249.162.194 '
netmask= ' 255.255.255.0 '
network= ' 24.249.162.0 '
Startmode= ' Onboot '
Usercontrol= ' No '
_nm_name= ' bus-pci-0000:01:04.0 '
and would contain additional lines. At the bottom of this file, you should add lines similar to:
ipaddr1= ' 24.249.162.195 '
netmask1= ' 255.255.255.0 '
label1= ' 0 '

5. To add the extra address and then you should issue:
/etc/init.d/network restart
To restart networking and activate the new IP address. 6. Verify. Also Use ping command.cheers! So now we had added a new virtual IP into the server. If You need more website is created on the same server, just repeat the same steps. I'll be show steps and the next section.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.