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

Source: Internet
Author: User

This section would continue the actual configure for IHS related files.
3) Copy The httpd.conf file to httpd2.conf, and modify them.
 Now Virtual IP has been added, and it's port has been released, so we can start to do some needed configure. Firstly, copy the httpd.conf file as httpd2.conf. For Apache based server, 1 Apache server instance need 1 httpd.conf file. And what we need to be configured includes:pidfile logs/httpd2.piddocumentroot "c:/web_site/myaddress2.com"
Listen 192.168.67.101:80
<virtualhost 192.168.67.101:80>...</VirtualHost> transferlog "|bin/rotatelogs.exe c:/web_log/myaddress2.com/access.%y%m%d.log 86400 +480"
Errorlog "|bin/rotatelogs.exe c:/web_log/myaddress2.com/error.%y%m%d.log 86400 +480" Now, if we start a new IHS instance with this configure file, then it'll be a different instance.   4) Create the needed folders (DocumentRoot, log folder, etc.) and add HOSTNAME/IP entry in the Hosts file (if needed).  Actually what do we need to create are Only:documentroot "c:/web_site/myaddress2.com" and Transferlog "|bin/rotatelogs.exe C:/web_log/myaddress2.com/access.%y%m%d.log 86400 +480 "and for testing purpose, we put a index.html file into the Docume NT Root Folder:after that, we ' d better add the domain of the IP into the hosts file so we can access our website VI A both IP and domain name, we can define any domain name to our IP because it's a Internal IP. File location:windows:c:\windows\system32\drivers\etc\hosts Linux:/etc/hosts   5) Start the Ihs/apache service.  Go to the IHS Home\bin folder, we'll use the Apache.exe-to-start the instance with the new httpd2.conf file.  Use this command to verify if the syntax of the config file is fine:apache.exe-t-F C:\IBM\HTTPServer\conf\httpd2.conf In order to start the service, there is some difference between Linux and Windows:Linux:This command would works:apache.exe-k Start-f C:\IBM\HTTPServer\conf\httpd2.confWindows:We need to add the new service into the Windows Service Manager, and then start it via the Windows service ui:firstly, ad D The service:c:\ibm\httpserver\bin>apache.exe-k install-n "ihs-myaddress2.com"-F C:\IBM\HTTPServer\conf\ httpd.conf succeed! Then open services.msc, can see it has been added successfully. Right click, and click Start. OK, the service has been started. 6) Verify if the changes works.  How to Test?  yeah, we be configuring a website infrastructure, of course the best by test via Browser.&nbs P; our Web page has been displayed successfully. And you can continue to put more Web pages into the document root Folder.   now, start to write your own we Bsite via maybe HTML and JS, if want to release it to the Internet, may need some ports forward configure in your home router D Evice, and that'll be another toy what can be play With. enjoy it! 

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.